{"name":"consecutive","version":"5.0.6","description":"Consecutive numbering","main":"index.js","types":"typings.d.ts","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":"be4920475d96fbea465adbfe09b43c004a04b5cc","_id":"consecutive@5.0.6","_nodeVersion":"20.3.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-wCvsPNdvHqaGFzHCKBiUKT79F4mabrhWofeyYIXvXexP/RcCqIA8sPUPzY/QhwUer5KjpAPOHHOpDZ7rxbEc0Q==","shasum":"b8cb79399a003c3deba7528f4a4e9fa83031994d","tarball":"http://registry-npm.ywwl.com/consecutive/download/consecutive-5.0.6.tgz","fileCount":10,"unpackedSize":16316,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+1Ie1kV2bYGGEQI00tMCqJU4jvpMt0zf+beJzag2SHAiBrzoznnNJlszR6ExJRitgU3jh8O4jHHsECXT95/Y1GYg=="}],"size":4012,"noattachment":false,"key":"/consecutive/-/consecutive-5.0.6.tgz"},"_npmUser":{"name":"ivanoff","email":"2@ivanoff.org.ua"},"directories":{},"maintainers":[{"name":"ivanoff","email":"2@ivanoff.org.ua"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/consecutive_5.0.6_1693811180397_0.7766182518517752"},"_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":1693811180556,"_cnpm_publish_time":1693811180556,"dist-tags":{"latest":"5.0.6"}}