New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

statestes

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statestes

A simple javascript statistics library. Statistics for n00bz.

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
2
Created
Source

statestes

Statistics for n00bs. Tastefully done. You're welcome.

A simple Javascript library for statistical analysis

forthebadge forthebadge

forthebadge forthebadge

JavaScript Style Guide

Installing / Getting started

Install using npm:

npm install statestes

Import in code

var statestes = require('statestes').statestes;

Install using yarn:

yarn add statestes

Import in code

var statestes = require('statestes').statestes;

Install using the built library.

Copy statestes.min.js from dist/statestes.min.js to a lib folder.

Import in code

<script src="lib/statestes.min.js"></script>

This will expose a statestes variable which you can access the functions from.

Include using CDN

Coming soon.

Using a function in the library:

Just reference a function using the dot notation. For example, to use the sum function, you can do:

  statestes.sum([1, 2, 3]); // 6

Developing

Built With

This project has no dependencies.

Prerequisites

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.

Setting up Dev

To start developing, run:

git clone https://github.com/johnpaulada/statestes.git
cd your-project/
yarn

This will:

  • Clone the project
  • Get you into the project
  • Install the dev dependencies

Building

To build the project, run:

npm start

This command will build the code to dist/statestes.min.js. Each change to the code will rebuild the code.

Tests

I use Jest to test this library. To run the tests, run:

npm test

These tests test the main statistical functions.

Licensing

MIT

Keywords

statestes

FAQs

Package last updated on 30 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts