diff --git a/README.md b/README.md index 55adb2668f5..8c8012d49c7 100644 --- a/README.md +++ b/README.md @@ -34,11 +34,16 @@ and more. ### Install with npm -```bash +```sh npm install plotly.js-dist ``` -and import plotly.js as `import Plotly from 'plotly.js-dist';` or `var Plotly = require('plotly.js-dist');`. +and import plotly.js as +```js +import Plotly from 'plotly.js-dist' +// Or using require, +var Plotly = require('plotly.js-dist') +``` ### Use the plotly.js CDN hosted by Fastly