Version 8.22.0

@esri/hub-content

Module to interact with ArcGIS Hub Content in Node.js and modern browsers.

npm install:

npm install @esri/hub-content @esri/arcgis-rest-auth@^2.13.0 || 3  @esri/arcgis-rest-feature-layer@^3.2.0  @esri/arcgis-rest-portal@^2.18.0 || 3  @esri/arcgis-rest-request@^2.13.0 || 3  @esri/hub-common@^8.21.0 

Module Import:

import {
  enrichContent,
  fetchEnrichments,
  getContent,
  getContentFromHub,
  getContentFromPortal,
  getContentMetadata,
  getLayerContent,
  getPortalUrls,
  parseISODateString,
  withPortalUrls,
} from "@esri/hub-content";

CDN:

<script src="https://unpkg.com/@esri/hub-content@8.22.0/dist/umd/content.umd.min.js"></script>

CDN with SRI: