{"name":"consecutive","version":"5.0.5","description":"Consecutive numbering","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/ivanoff/consecutive.git"},"keywords":["consecutive","numbering","unique","next number","unique id"],"author":{"name":"Dimitry Ivanov","email":"2@ivanoff.org.ua"},"license":"MIT","bugs":{"url":"https://github.com/ivanoff/consecutive/issues"},"homepage":"https://github.com/ivanoff/consecutive","devDependencies":{"chai":"^3.3.0","coveralls":"^2.11.15","istanbul":"^0.4.5","mocha":"^2.3.3"},"gitHead":"ba247f79436a4584343aaccf32da2143118ac10f","_id":"consecutive@5.0.5","_nodeVersion":"12.10.0","_npmVersion":"6.10.3","dist":{"integrity":"sha512-mx9vRmvKStKCsPf9vLipVK6k3W44gam+HBQ4S1CfGdcMCm2QqZ7swd2cxczkd7VlVf5PrHVW4zDIhG7wH6P3LA==","shasum":"4e08dbdaade3bf54b773a1a2bc8bce806f57c50b","tarball":"http://registry-npm.ywwl.com/consecutive/download/consecutive-5.0.5.tgz","fileCount":9,"unpackedSize":16080,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1t+3CRA9TVsSAnZWagAA7+8QAIkX7abxfgt0gOf+U8ZV\nobYVs+3Dip6jXoF3MKrwKc3fqN7j+mWlpjNOPHTEl2YIALVfmi2RE9J3pJxC\neHDZzoopt5zK9aCITOqbBWTo7Fl9Dhc3a3O4npHs1Kn4kf4lx36FY040PSAi\ngfWkbg4K414gMG4WxWZhwNyBH5jtAeWmsT8SjyGhwcUMJ2qIXgyF1Ok2SnEn\nTjI3j2QU83uYOj9mYycuwiSHE6un1bbenVIwYRBO4rtaOTL2rf8K+DRWhrPr\nIIxfIYBZR7/9DgbasNLj6DLzGiVkdXrmavQoyjFvqawh79u2Iru++FS4XkM1\nQSKfOTnXJ8RTpdd5liKmDkyv4UQi2Y6Wv4K1Emd4kFgji5jzV6PPU/uKyBCk\nmeeofIlfuax5OYWk0yOvtas3QgsOAu6UZ3dL5TOxtjUO9uM+l0Vn2g5NfFO+\ncMWWpVN5GOFAp5I63kMKopnZCOFoG+y4b/fmYTGOuStIMbHE+KVD1Yioy0mJ\n6Dg/KZJ019M242D0B/Qejc7nfz0RH639sM+ihZXGMhCJm9JmazV2vsZSyTKO\n83vlJfybFsgwBi1Y4eC0XO9qeIgcMXPIIC4JHdYvIe+jBG32QZI+hMQGrdxk\n3YxBkfDAgvywfvCr/kUqDhPisJdCgsI5dlMeeCTbuhWfU4tdprPbajo0Ertr\nRxPL\r\n=T8e6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAH3n6SqPv0KS4AjOGfCBRtEDhJTS5LbEWAskMQUQX3qAiEAodHVX0WGscnVogLdGr9JvJ+qiOfyY15agQ8QC4WaBHw="}],"size":3945,"noattachment":false,"key":"/consecutive/-/consecutive-5.0.5.tgz"},"maintainers":[{"name":"ivanoff","email":"2@ivanoff.org.ua"}],"_npmUser":{"name":"ivanoff","email":"2@ivanoff.org.ua"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/consecutive_5.0.5_1574363062928_0.702136315251231"},"_hasShrinkwrap":false,"readme":"\n[![NPM version][npm-version-image]][npm-url]\n[![NPM downloads][npm-downloads-image]][npm-url]\n[![MIT License][license-image]][license-url]\n[![js-standard-style][standard-style-image]][standard-style-url]\n[![Build Status: Linux][travis-image]][travis-url]\n[![Build Status: Windows][appveyor-image]][appveyor-url]\n[![Coverage Status][coveralls-image]][coveralls-url]\n\n\n# consecutive\n\n### Get consecutive numbers\n\n v5.0.5\n\n\n## Installation\n```$ npm install --save consecutive```\n\n\n## Usage\n\n```javascript\nvar consecutive = require('consecutive');\n\nvar next = consecutive();\nconsole.log(next(), next(), next());\n//=> 0 1 2\n\n//starts with 5\nvar begin = consecutive(5);\nconsole.log(begin(), begin(), begin());\n//=> 5 6 7\n\n//base 2\nvar base2 = consecutive(null, 2);\nconsole.log(base2(), base2(), base2());\n//=> 0 1 10\n\n//base 16, starts with 9ffa, step 3\nvar base16 = consecutive('9ffa', 16, 3);\nconsole.log(base16(), base16(), base16());\n//=> 9ffa 9ffd a000\n\n```\n\n### TypeScript Usage Example\n\n```javascript\nimport consecutive from 'consecutive';\n\nconst next = consecutive();\nconsole.log(next(), next(), next());\n//=> 0 1 2\n```\n\n\n## API\n\n### consecutive(begin, base, step)\n\nReturns a function that when called will return a consecutive number, counting on base and step.\n\n name | optional | default value | description\n------|----------|---------------|-------------\nbegin | yes | 0 | Number to start from\nbase | yes | 10 | An integer between 2 and 36 specifying the base to use for representing numeric values\nstep | yes | 1 | Number to increment\n\n\n## Tests\n\n```npm test```\n\n\n## Change Log\n\n[all changes](CHANGELOG.md)\n\n\n## Created by\n\nDimitry, 2@ivanoff.org.ua\n\n```curl -A cv ivanoff.org.ua```\n\n\n[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]: LICENSE\n\n[standard-style-image]: https://img.shields.io/badge/code%20style-airbnb-blue.svg?style=flat\n[standard-style-url]: https://github.com/airbnb/javascript\n\n[npm-url]: https://npmjs.org/package/consecutive\n[npm-version-image]: http://img.shields.io/npm/v/consecutive.svg?style=flat\n[npm-downloads-image]: http://img.shields.io/npm/dm/consecutive.svg?style=flat\n\n[travis-url]: https://travis-ci.org/ivanoff/consecutive\n[travis-image]: https://travis-ci.org/ivanoff/consecutive.svg?branch=master\n\n[appveyor-url]: https://ci.appveyor.com/project/ivanoff/consecutive/branch/master\n[appveyor-image]: https://ci.appveyor.com/api/projects/status/lp3nhnam1eyyqh33/branch/master?svg=true\n\n[coveralls-url]: https://coveralls.io/github/ivanoff/consecutive\n[coveralls-image]: https://coveralls.io/repos/github/ivanoff/consecutive/badge.svg\n","publish_time":1574363063047,"_cnpm_publish_time":1574363063047,"dist-tags":{"latest":"5.0.6"}}