@esri/arcgis-rest-demographics

Demographics data helpers for ArcGIS REST JS.

Install

Use dark colors for code blocksCopy
1
npm install @esri/arcgis-rest-demographics

Import

@esri/arcgis-rest-demographics is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
1
import * as demographicsTools from "@esri/arcgis-rest-demographics"
Use dark colors for code blocksCopy
1
const demographicsTools = require("@esri/arcgis-rest-demographics");

CDN

You can use @esri/arcgis-rest-demographics as an ES Module from the esm.run CDN.

Use dark colors for code blocksCopy
1
2
3
<script type="module">
  import * as demographicsTools from "https://esm.run/@esri/arcgis-rest-demographics@4.0.3";
</script>

You can also use @esri/arcgis-rest-demographics from a script tag. All exports will be added to a global arcgisRest object.

Use dark colors for code blocksCopy
1
2
3
4
<script
  src="https://unpkg.com/@esri/arcgis-rest-demographics@4.0.3/dist/bundled/demographics.umd.min.js"
  integrity="sha512-+m9laIT4kobFx85AuNViVijxH9/KuFEFJo+Sdw2s5WAR5Cr7+OiWWl3tqxnxpLA7NNJmXxdzOqIeQ7BGoAnarQ==">
</script>

Exports

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.