{"name":"ml-array-rescale","version":"1.1.0","description":"Rescale an array into a range","main":"lib/index.js","module":"src/index.js","files":["lib","src"],"repository":{"type":"git","url":"git+https://github.com/mljs/array.git"},"keywords":[],"author":{"name":"Michaël Zasso"},"license":"MIT","bugs":{"url":"https://github.com/mljs/array/issues"},"homepage":"https://github.com/mljs/array/tree/master/packages/array-rescale#readme","dependencies":{"ml-array-max":"^1.0.1","ml-array-min":"^1.0.1"},"_id":"ml-array-rescale@1.1.0","_npmVersion":"5.1.0","_nodeVersion":"8.0.0","_npmUser":{"name":"maasencioh","email":"maasencioh@gmail.com"},"dist":{"integrity":"sha512-pBUZV5klWv/H0tgCnOFCIdny9WTCk9jUP/2JebS1otnh/PcRaH9csv4PLt8K4f2r7P++uPrRja0PJa2GQwehbg==","shasum":"e5a6aaff247865d1e1c8acfb8ef630fe5df1e3a2","tarball":"http://registry-npm.ywwl.com/ml-array-rescale/download/ml-array-rescale-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA6udhAA9J6/fcP7rySS7ZceZOGU+LM4dUX6uV16aEb4AiBq8C431QYD88OWMbAB4s1n0hhMZGufbSJu2IERTAk9Cw=="}],"size":2611,"noattachment":false,"key":"/ml-array-rescale/-/ml-array-rescale-1.1.0.tgz"},"maintainers":[{"email":"swrt_9950@hotmail.com","name":"jeffersonh44"},{"email":"maasencioh@gmail.com","name":"maasencioh"},{"email":"lpatiny@gmail.com","name":"lpatiny"},{"email":"targos@live.com","name":"targos"},{"email":"kostro.d@gmail.com","name":"stropitek"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ml-array-rescale-1.1.0.tgz_1500366158379_0.9786098499316722"},"directories":{},"readme":"# array-rescale\n\n  [![NPM version][npm-image]][npm-url]\n  [![npm download][download-image]][download-url]\n\nRescale an array into a range.\n\n## Installation\n\n`$ npm install --save ml-array-rescale`\n\n## Usage\n\n### `rescale(input[, options])`\n\nRescales the values in the `input` so they fit between two new values.\n\n__Options:__\n\n* `min`: the new minimum value (default: 0)\n* `max`: the new maximum value (default: 1)\n* `output`: an array to use for output. You can pass `input` here to get an in-place modification.\n\n```js\nimport rescale from 'ml-array-rescale';\n\nconst result = rescale([0, 1, 2, 3, 4]);\n// [0, 0.25, 0.5, 0.75, 1]\n```\n\n## License\n\n  [MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/ml-array-rescale.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/ml-array-rescale\n[download-image]: https://img.shields.io/npm/dm/ml-array-rescale.svg?style=flat-square\n[download-url]: https://npmjs.org/package/ml-array-rescale\n","publish_time":1500366159343,"_cnpm_publish_time":1500366159343,"dist-tags":{"latest":"2.0.0"}}