{"name":"bullets","description":"Generate a plain-text and markdown formatted lists or tables of contents, with proper indentation, bullets, numbers, letters, roman numerals or custom characters.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/bullets","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Anders D. Johnson","url":"https://github.com/adjohnson916"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/bullets.git"},"bugs":{"url":"https://github.com/jonschlinkert/bullets/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"expand-range":"^1.8.1","list-item":"^1.1.1","pad-left":"^2.0.0"},"devDependencies":{"mocha":"*","romanize":"^0.1.0","should":"*"},"keywords":["bullet","format","item","list","list-item","markdown","numbered","numerals","ordered","roman","test","unordered"],"verb":{"related":{"list":[]},"plugins":["gulp-format-md"],"layout":"default","option":{"toc":false}},"gitHead":"ef1d794d9f96a61bc400c6af061d03f7184bfb78","_id":"bullets@0.2.0","_shasum":"bc01200dbf40c08fc1cf1410cd4eaab65262b501","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"bc01200dbf40c08fc1cf1410cd4eaab65262b501","tarball":"http://registry-npm.ywwl.com/bullets/download/bullets-0.2.0.tgz","integrity":"sha512-X2Um2sA+HHvr42ZfcEHaXHhUtRrTN4FltSSC/KuHMcFCj888cMn2xvDzT3mS076nK5kP/3uCQwr7I519bo2sAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGEIF6J9aOH2yHnN1ar2eFdHpcuC7F2qWYZKKNA1Nwa5AiAftOmh7lLIBiJ8NS5+/nLZ7GO3R11jR8Wapk3jpBoNVg=="}],"size":2801,"noattachment":false,"key":"/bullets/-/bullets-0.2.0.tgz"},"directories":{},"readme":"# bullets [![NPM version](https://img.shields.io/npm/v/bullets.svg)](https://www.npmjs.com/package/bullets) [![Build Status](https://img.shields.io/travis/jonschlinkert/bullets.svg)](https://travis-ci.org/jonschlinkert/bullets)\n\n> Generate a plain-text and markdown formatted lists or tables of contents, with proper indentation, bullets, numbers, letters, roman numerals or custom characters.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm i bullets --save\n```\n\n## Usage\n\n```js\nvar bullets = require('bullets');\n```\n\n## Examples\n\n**Roman numerals**\n\n```js\nvar list = [\n  {text: 'Item a...', lvl: 0}, \n  {text: 'Item b...', lvl: 1}, \n  {text: 'Item c...', lvl: 2},\n  {text: 'Item d...', lvl: 2},\n  {text: 'Item e...', lvl: 2},\n];\n\n// let's generate 100 numerals, in case our list grows.\nvar actual = bullets(list, {chars: '1..100'}, function (ch) {\n  return romanize(ch) + '.';\n});\n```\n\nResults in:\n\n```\nI. Item a...\n  II. Item b...\n    III. Item c...\n    III. Item d...\n    III. Item e...\n```\n\n## API\n\n### [bullets](index.js#L56)\n\nPass an array of list-item objects to generate a formatted list or table of contents. Uses [list-item](https://github.com/jonschlinkert/list-item) for generating the actual items.\n\nNote that `lvl` or `level` may be passed as the property name in the\nfollowing examples.\n\n**Params**\n\n* `list` **{Array}**: Array of item objects with `text` and `lvl` properties\n* `list.text` **{String}**: The text for the list item.\n* `list.lvl` **{Number}**: The level of the list item to be used for indenting the list.\n* `opts` **{Object}**: Options to pass to [list-item](https://github.com/jonschlinkert/list-item).\n* `fn` **{Function}**: pass a function to modify the bullet for an item as it's generated.\n\n**Example**\n\n```js\nvar list = [\n  {text: 'This is item 1', lvl: 0},\n  {text: 'This is item 2', lvl: 0},\n  {text: 'This is item 3', lvl: 0},\n  {text: 'This is sub-item A', lvl: 2},\n  {text: 'This is sub-item B', lvl: 2},\n  {text: 'This is sub-item C', lvl: 2},\n];\nbullets([{text: 'This is a list item', lvl: 0}]);\n\n// Results in\n// '- This is item 1'\n// '- This is item 2'\n// '- This is item 3'\n// '  * This is sub-item A'\n// '  * This is sub-item B'\n// '  * This is sub-item C'\n```\n\n## Related projects\n\n[list-item](https://www.npmjs.com/package/list-item): Generate a single formatted list item, allowing you to easily generate lists with proper indentation,… [more](https://www.npmjs.com/package/list-item) | [homepage](https://github.com/jonschlinkert/list-item)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/bullets/issues/new).\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb) on January 19, 2016._","publish_time":1450637027219,"_cnpm_publish_time":1450637027219,"dist-tags":{"latest":"0.2.2"}}