Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "jstat-esm", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Statistical Library for JavaScript", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/jstat/jstat", |
@@ -1,2 +0,2 @@ | ||
jStat-es - JavaScript Statistical Library | ||
jStat-esm - JavaScript Statistical Library | ||
=============================================================== | ||
@@ -7,5 +7,5 @@ | ||
```sh | ||
npm install jstat-es | ||
npm install jstat-esm | ||
# OR | ||
yarn add jstat-es | ||
yarn add jstat-esm | ||
``` | ||
@@ -22,3 +22,3 @@ ### Bundle size | ||
// Only import the function you use! | ||
import {gamma, lognormal, tscore} from 'jstat-es'; | ||
import {gamma, lognormal, tscore} from 'jstat-esm'; | ||
@@ -28,5 +28,5 @@ // Import jStat constructor, usage is same as before | ||
// the budle size for this whole module will be ~50KB without GZIP | ||
import {jStat} from 'jstat-es'; | ||
import {jStat} from 'jstat-esm'; | ||
// or | ||
import jStat from 'jstat-es'; | ||
import jStat from 'jstat-esm'; | ||
``` | ||
@@ -37,4 +37,4 @@ | ||
// Tree shaking on commonjs is limited on webpack. Using ES6 is recommanded. | ||
const {jStat} = require('jstat-es'); | ||
const {gamma, lognormal, tscore} = require('jstat-es'); | ||
const {jStat} = require('jstat-esm'); | ||
const {gamma, lognormal, tscore} = require('jstat-esm'); | ||
``` | ||
@@ -44,3 +44,3 @@ | ||
```html | ||
<script src="node_modules/jstat-es/dist/jstat.min.js"></script> | ||
<script src="node_modules/jstat-esm/dist/jstat.min.js"></script> | ||
@@ -47,0 +47,0 @@ <script> |
539030