UNPKG

weighted-mean

Version:

Calculates the weighted mean of an array of numbers

38 lines (37 loc) 1.21 kB
{ "name": "weighted-mean", "version": "1.0.2", "description": "Calculates the weighted mean of an array of numbers", "main": "index.js", "scripts": { "lint": "eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js", "test": "mocha --bail", "test-cov": "istanbul cover --dir test/coverage _mocha -- --bail -t 15000 && echo Coverage lies in test/coverage/lcov-report/index.html", "test-travis": "istanbul cover _mocha --report lcovonly -- --bail -t 15000 && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "browserify": "browserify -s weighted-mean index.js > index.umd.js" }, "bugs": { "url": "https://github.com/IndigoUnited/js-weighted-mean/issues/" }, "repository": { "type": "git", "url": "git://github.com/IndigoUnited/js-weighted-mean.git" }, "keywords": [ "mean", "weight", "avg", "average" ], "author": "IndigoUnited <hello@indigounited.com> (http://indigounited.com)", "license": "MIT", "devDependencies": { "@satazor/eslint-config": "^3.0.0", "browserify": "^14.0.0", "chai": "^3.5.0", "coveralls": "^2.11.9", "eslint": "^3.0.0", "istanbul": "^0.4.3", "mocha": "^3.0.2" } }