Statistics for n00bs. Tastefully done. You're welcome.
A simple Javascript library for statistical analysis
npm install statestesvar statestes = require('statestes').statestes;yarn add statestesvar statestes = require('statestes').statestes;Copy statestes.min.js from dist/statestes.min.js to a lib folder.
<script src="lib/statestes.min.js"></script>This will expose a statestes variable which you can access the functions from.
<script src="https://cdn.jsdelivr.net/npm/statestes/dist/statestes.min.js"></script>The script can also be included from a CDN for faster and likely cached delivery, it can that be used through the statestes variable as described below.
Just reference a function using the dot notation.
For example, to use the sum function, you can do:
statestes.sum([1, 2, 3]); // 6This project has no dependencies.
The dev prerequisites for this project are:
- Babel - for transpiling ES6 to ES5 code.
- Fusebox - a faster and simpler module bundler.
- Jest - Facebook's testing framework.
To start developing, run:
git clone https://github.com/johnpaulada/statestes.git
cd your-project/
yarnThis will:
- Clone the project
- Get you into the project
- Install the dev dependencies
To build the project, run:
npm startThis command will build the code to dist/statestes.min.js.
Each change to the code will rebuild the code.
I use Jest to test this library. To run the tests, run:
npm testThese tests test the main statistical functions.
MIT