Published
Edited
Aug 5, 2020
2 stars
Insert cell
Insert cell
Insert cell
// npm_example_es = import("@andyreagan/npm-example@1.2.0")
// shorthand for:
npm_example_es = import('https://unpkg.com/@andyreagan/npm-example@1.2.0?module')
Insert cell
{
console.log("npm_example_es");
npm_example_es.printMsg();
npm_example_es.functionThatDependsOnD3();
return md`Success!`
}
Insert cell
Insert cell
// npm_example = require('@andyreagan/npm-example')
npm_example = require('@andyreagan/npm-example@1.2.0')
// npm_example = require('@andyreagan/npm-example@1.2.0/dist/npm-example.js')
// npm_example = require('@andyreagan/npm-example@1.2.0/dist/npm-example-bundle.js')
Insert cell
{
console.log("npm_example");
npm_example.printMsg();
npm_example.functionThatDependsOnD3();
return md`Success!`
}
Insert cell
Insert cell
npm_example_bundle = require('https://bundle.run/@andyreagan/npm-example@1.2.0')
Insert cell
{
console.log("npm_example_bundle");
npm_example_bundle.printMsg();
npm_example_bundle.functionThatDependsOnD3();
return md`Success!`
}
Insert cell
Insert cell
Insert cell
npm_example_es_cdn = import('https://cdn.skypack.dev/@andyreagan/npm-example@1.2.0')
Insert cell
{
console.log("npm_example_es_cdn");
npm_example_es_cdn.printMsg();
npm_example_es_cdn.functionThatDependsOnD3();
return md`Success!`
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more