From 9d0f9b008a4c7c8c9b1b3829539a429e7ba82320 Mon Sep 17 00:00:00 2001 From: Mohamed Nainar Date: Fri, 10 Apr 2020 11:06:25 +0530 Subject: [PATCH 1/2] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 55adb2668f5..82361ad5bba 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 in Node, +var Plotly = require('plotly.js-dist') +``` ### Use the plotly.js CDN hosted by Fastly From b51e7ef766286fded8d9efb6007891dd51e7b9ea Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Thu, 30 Apr 2020 11:33:18 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 82361ad5bba..8c8012d49c7 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ npm install plotly.js-dist and import plotly.js as ```js import Plotly from 'plotly.js-dist' -// Or in Node, +// Or using require, var Plotly = require('plotly.js-dist') ```