{"name":"consecutive","version":"5.0.2","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":"431bceb3da8be468e239b2f20cbc53f09bf21608","_id":"consecutive@5.0.2","_shasum":"b42f2fa0fa6b116de74942a6d995cd09f4cf3f68","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"ivanoff","email":"2@ivanoff.org.ua"},"dist":{"shasum":"b42f2fa0fa6b116de74942a6d995cd09f4cf3f68","tarball":"http://registry-npm.ywwl.com/consecutive/download/consecutive-5.0.2.tgz","integrity":"sha512-A2uVbHQkSwKJ4/9tSnIsIsQ6LqjIYHSHYvY7dB0Nzptb2yUPjVdxH5nKEdNzV8Zk0tGwz9wyGrjdLhH64MIPeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDwDp67bTuu5aYhNzssVc7dS3NrzvxnzxhPafH+AhjgDAiEA+EVcbTapacd/44xbiwv2gRtMx3D2KmbCandAeh6tWJo="}],"size":3709,"noattachment":false,"key":"/consecutive/-/consecutive-5.0.2.tgz"},"maintainers":[{"name":"ivanoff","email":"2@ivanoff.org.ua"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/consecutive-5.0.2.tgz_1492607070916_0.8928591362200677"},"directories":{},"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":1492607071707,"_cnpm_publish_time":1492607071707,"dist-tags":{"latest":"5.0.6"}}