{"name":"simple-statistics","version":"7.10.2","keywords":["descriptive","linear","math","probability","regression","statistics"],"author":"Tom MacWright <tom@macwright.com> (https://macwright.com/)","license":"ISC","_id":"simple-statistics@7.10.2","maintainers":[{"name":"tmcw","email":"tom@macwright.com"}],"dist":{"shasum":"b8a376dc0836cf82cdbd0080938e31a5daf94979","tarball":"http://registry-npm.ywwl.com/simple-statistics/download/simple-statistics-7.10.2.tgz","fileCount":203,"integrity":"sha512-g6GAVcNXkSg/Sm9wQ8RR906KHaGaGb9SCZR8K1l0AyXPP/s5YsdCwd4qHOJflToeqROYr6XyVdP073zwsBf38g==","signatures":[{"sig":"MEUCIQD51ck4Bng9fovT5fZML7QEY8v5m88glOr6+itWKHam/QIgOoAizk0oT9bwr17ZL9HbogWkRIH4b8tWEKggyIXuw9U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICQmcdV/LoCGo6g6VxqVmkc/FGmyvIbcgwWv5vIijAYRAiEAxlREvA921qf44yiI9OWbdxbfT06b3LPjlxSsbv/C304=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/simple-statistics@7.10.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1287167,"size":322831,"noattachment":false,"key":"/simple-statistics/-/simple-statistics-7.10.2.tgz"},"main":"dist/simple-statistics.cjs","type":"module","types":"index.d.ts","unpkg":"dist/simple-statistics.min.js","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.cjs"},"./package.json":"./package.json"},"scripts":{"lint":"biome check index.js src test","test":"npm run lint && node --test --experimental-test-isolation=none test/*.test.js","build":"rollup -c rollup.config.mjs","prelint":"tsc --skipLibCheck --noEmit","release":"sh ./scripts/update_website.sh","lint-fix":"biome check --fix index.js src test","postlint":"documentation lint src","changeset:version":"changeset version && node ./scripts/update_readme.js"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:60f4dbef-63e0-4503-a747-8fae54be8b3f"}},"umd:main":"dist/simple-statistics.min.js","repository":{"url":"git://github.com/simple-statistics/simple-statistics.git","type":"git"},"description":"Simple Statistics","directories":{},"_nodeVersion":"26.7.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^4.62.4","random-js":"^2.1.0","typescript":"^7.0.2","documentation":"^14.0.3","@biomejs/biome":"^2.5.8","@changesets/cli":"^3.0.0","@rollup/plugin-buble":"^1.0.3","@rollup/plugin-terser":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/simple-statistics_7.10.2_1787165176015_0.036518765038470846","host":"s3://npm-registry-packages-npm-production"},"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":1787165176128,"_cnpm_publish_time":1787165176128,"dist-tags":{"latest":"8.0.0","testing":"7.0.9-alpha.0"}}