{"name":"ml-array-rescale","version":"1.0.2","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.0.2","_npmVersion":"5.1.0","_nodeVersion":"8.0.0","_npmUser":{"name":"maasencioh","email":"maasencioh@gmail.com"},"dist":{"integrity":"sha512-f9z+m/FgOWhu212COJZd3gsuIhAyS2sfiwh+2p4UmcdDphLAt2O7HfgNQNd0WEBaeefHUzU4ozDYF+qMlKTUwg==","shasum":"732adab3dd240af19409a690c9502f28f050de18","tarball":"http://registry-npm.ywwl.com/ml-array-rescale/download/ml-array-rescale-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSxbvH9CAhwiNek2r1ioVFmqCYte+mbc8OZs5KHbSo8wIgc60HbwgaSR88DYEicqBKzoU2ya7IBl4mWx/zYjuSrs8="}],"size":2528,"noattachment":false,"key":"/ml-array-rescale/-/ml-array-rescale-1.0.2.tgz"},"maintainers":[{"email":"andcastillo@gmail.com","name":"andcastillo"},{"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.0.2.tgz_1499761440873_0.43631800590083003"},"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":1499761441764,"_cnpm_publish_time":1499761441764,"dist-tags":{"latest":"2.0.0"}}