{"name":"simple-statistics","version":"7.8.6","keywords":["descriptive","linear","math","probability","regression","statistics"],"author":{"url":"https://macwright.com/","name":"Tom MacWright","email":"tom@macwright.com"},"license":"ISC","_id":"simple-statistics@7.8.6","maintainers":[{"name":"tmcw","email":"tom@macwright.com"}],"homepage":"https://github.com/simple-statistics/simple-statistics#readme","bugs":{"url":"https://github.com/simple-statistics/simple-statistics/issues"},"dist":{"shasum":"a38c77f6d45cb068c5b5d92304227df5f679a015","tarball":"http://registry-npm.ywwl.com/simple-statistics/download/simple-statistics-7.8.6.tgz","fileCount":183,"integrity":"sha512-+oPS+l65uA9gM9KYwy8FxG9sQmKBQww1zR87uH2NfHN4tsbu+yYcdRn+jeE8RZkqx6dGsu+QX7ZWtQxQOiiVwg==","signatures":[{"sig":"MEYCIQCTvHcLvmLMk4nlBHryEbRM6feFavGs4IzBfyaW0dLDmgIhAKO+Km5dQGpkoZYIZjnuQQYdqDZOxpSotsjyGt0Uzfab","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184736,"size":52976,"noattachment":false,"key":"/simple-statistics/-/simple-statistics-7.8.6.tgz"},"main":"dist/simple-statistics.js","types":"index.d.ts","unpkg":"dist/simple-statistics.min.js","volta":{"node":"20.16.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"module":"dist/simple-statistics.mjs","source":"index.js","browser":"dist/simple-statistics.min.js","engines":{"node":"*"},"exports":{".":{"types":"./index.d.ts","import":"./dist/simple-statistics.mjs","browser":"./dist/simple-statistics.min.js","require":"./dist/simple-statistics.js"},"./package.json":"./package.json"},"gitHead":"2fefa3c036e4aa231a7030b9b9b2d78866bf99a9","scripts":{"lint":"biome check index.js src test","test":"rollup -c rollup.config.mjs && npm run lint && tap test/*.test.js --jobs=4","build":"rollup -c rollup.config.mjs","prelint":"tsc --skipLibCheck --noEmit","release":"standard-version && sh ./scripts/update_website.sh","lint-fix":"biome check --fix index.js src test","postlint":"documentation lint src","prepublish":"rollup -c rollup.config.mjs && ./scripts/update_readme.js"},"_npmUser":{"name":"tmcw","email":"tom@macwright.com"},"umd:main":"dist/simple-statistics.min.js","repository":{"url":"git://github.com/simple-statistics/simple-statistics.git","type":"git"},"_npmVersion":"10.8.1","description":"Simple Statistics","directories":{},"_nodeVersion":"20.16.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^21.0.1","rollup":"^4.20.0","random-js":"^2.1.0","typescript":"^5.5.4","documentation":"^14","@biomejs/biome":"^1.8.3","standard-version":"^9.5.0","@rollup/plugin-buble":"^1.0.3","@rollup/plugin-terser":"^0.4.4","cz-conventional-changelog":"^3.3.0"},"_npmOperationalInternal":{"tmp":"tmp/simple-statistics_7.8.6_1729089401048_0.022001831174721653","host":"s3://npm-registry-packages"},"readme":"# Simple Statistics\n\nA JavaScript implementation of descriptive, regression, and inference statistics.\n\nImplemented in literate JavaScript with no dependencies, designed to work\nin all modern browsers (including IE) as well as in [node.js](https://nodejs.org/).\n\n* :green_book: [API Documentation](https://simple-statistics.github.io/)\n* :chart_with_upwards_trend: [Benchmarks](./benchmarks/)\n* :kissing: [A list of other statistics libraries](./SEEALSO.md)\n\n## Installation\n\n* **I'm using Node.js, Webpack, Browserify, Rollup, or another module bundler,\n  and install packages from npm.**\n  * First, install the `simple-statistics` module, using `npm install simple-statistics`,\n    then include the code with require or import:\n  * **I use the `require` function to use modules in my project. (most likely)**\n    * When you use `require`, you have the freedom to assign the module to any\n      variable name you want, but you need to specify the module's name exactly:\n      in this case, 'simple-statistics'. The `require` method returns an object\n      with all of the module's methods attached to it.<br /> <pre>var ss = require('simple-statistics')</pre>\n  * **I use `import` to use modules in my project. I'm probably using Babel, `@std/esm`, Webpack, or Rollup.**\n    * Import all functions under the ss object: <pre>import * as ss from 'simple-statistics'</pre>\n      Include a specific named export: <pre>import {min} from 'simple-statistics'</pre>\n      Simple statistics has _only_ named exports for ES6.\n* **I'm using Deno.**\n  * We recommend using Deno's first-class [NPM compatibility](https://docs.deno.com/runtime/fundamentals/node/) to use simple-statistics from NPM: you'll need to import it as `npm:simple-statistics`.\n* **I'm not using a module bundler. I'm writing a web page, and want to include\n  simple-statistics using a script tag.**\n  * **I want to support all browsers**\n    * When you use simple-statistics from a script tag, you don't get to choose\n      the variable name it is assigned to: simple-statistics will always become\n      available globally as the variable `ss`. You can reassign this variable to\n      another name if you want to, but doing so is optional.\n      ```HTML\n      <script src='https://unpkg.com/simple-statistics@7.11.0/dist/simple-statistics.min.js'>\n      </script>\n      ```\n  * **I want to use ES6 modules in a browser and I'm [willing to only support new browsers](https://caniuse.com/#feat=es6-module) to do it**\n    * This module works great with the [`?module`](https://unpkg.com/#/query-parameters) query parameter of unpkg. If you\n      specify `type='module'` in your script tag, you'll be able to import simple-statistics\n      directly - through `index.js` and with true [ES6 import syntax and behavior](http://exploringjs.com/es6/ch_modules.html).\n      ```js\n      <script type='module'>\n      import {min} from \"https://unpkg.com/simple-statistics@7.11.0/index.js?module\"\n      console.log(min([1, 2, 3]))\n      </script>\n      ```\n      This feature is still experimental in unpkg and very bleeding-edge.\n","publish_time":1729089401281,"_cnpm_publish_time":1729089401281,"dist-tags":{"latest":"8.0.0","testing":"7.0.9-alpha.0"}}