{"name":"stringify-changelog","description":"Generate a markdown-formatted changelog from an object, array or yaml file.","version":"0.1.3","homepage":"https://github.com/jonschlinkert/stringify-changelog","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/stringify-changelog.git"},"bugs":{"url":"https://github.com/jonschlinkert/stringify-changelog/issues"},"license":"MIT","files":["index.js","LICENSE","README.md"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"columnify":"^1.5.4","js-yaml-lite":"^0.1.1","mixin-deep":"^1.1.3","moment":"^2.14.1"},"devDependencies":{"gulp-format-md":"^0.1.9","mocha":"*","should":"*"},"keywords":["changelog","stringify"],"verb":{"related":{"list":["helper-changelog"]},"toc":false,"layout":"nil","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"511c4b86529883d9146807b6dcab88ccb86fc258","_id":"stringify-changelog@0.1.3","_shasum":"b44f98ef8d8089778378311460ffd847851fad52","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"b44f98ef8d8089778378311460ffd847851fad52","tarball":"http://registry-npm.ywwl.com/stringify-changelog/download/stringify-changelog-0.1.3.tgz","integrity":"sha512-Vcg7WpaaqbV7mayE4RtdKj6mRZ3p1N6JDu9Wk9kjfRopOSvJ1PvnHPuCPROunafZNNlQYKJHqUdFjOM2Hsg5YQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTmn1MhowW3rtjZYzmOhRbI1+AHwwRyX4JHSaFAqGtJQIgR+fm10dcihmX3/idpNquC4gGU0gOidN6C0emKUH7bN0="}],"size":2979,"noattachment":false,"key":"/stringify-changelog/-/stringify-changelog-0.1.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/stringify-changelog-0.1.3.tgz_1469081744162_0.048250024439767"},"directories":{},"readme":"# stringify-changelog [![NPM version](https://img.shields.io/npm/v/stringify-changelog.svg?style=flat)](https://www.npmjs.com/package/stringify-changelog) [![NPM downloads](https://img.shields.io/npm/dm/stringify-changelog.svg?style=flat)](https://npmjs.org/package/stringify-changelog) [![Build Status](https://img.shields.io/travis/jonschlinkert/stringify-changelog.svg?style=flat)](https://travis-ci.org/jonschlinkert/stringify-changelog)\n\nGenerate a markdown-formatted changelog from an object, array, yaml or json file.\n\nConverts valid YAML, like this:\n\n```yaml\nv0.1.0:\n  date: \"2016-12-26\"\n  changed:\n    - Got stuck in another chimney.\n```\n\nInto this:\n\n```markdown\n### [v0.1.0] - 2016-12-26\n\n**changes**\n\n- Got stuck in another chimney.\n```\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save stringify-changelog\n```\n\n## Usage\n\n```js\nvar changelog = require('stringify-changelog');\nchangelog(value, options);\n```\n\n**Params**\n\n* `value` **{String|Object|Array}**: File path of YAML file to read, object or array of changes (see below)\n* `options` **{Object}**: the following options may be passed to modify output\n  - `format` **{Function}** Custom function for formatting each entry in the changelog\n  - `key` **{Function}** Prepend the following key/reference to your generated changelog, to guide users in making semantically labeled entries.\n\n**Example key**\n\n```\n## key\n\nChangelog entries are classified using the following labels from [keep-a-changelog][]:\n\n- `added`: for new features\n- `changed`: for changes in existing functionality\n- `deprecated`: for once-stable features removed in upcoming releases\n- `removed`: for deprecated features removed in this release\n- `fixed`: for any bug fixes\n\n[keep-a-changelog]: https://github.com/olivierlacan/keep-a-changelog\n```\n\n## Data format\n\nConventions from [keep-a-changelog][] are supported by default. When data is passed as an object or array (from a file or directly), changelog entries can be categorized using the following labels as property names:\n\n* `added` for new features.\n* `changed` for changes in existing functionality.\n* `deprecated` for once-stable features removed in upcoming releases.\n* `removed` for deprecated features removed in this release.\n* `fixed` for any bug fixes.\n* `security` to invite users to upgrade in case of vulnerabilities.\n\n### Examples\n\nData can either be formatted as an array or an object.\n\n**Object**\n\nJSON\n\n```js\n{ 'v0.1.0':\n   { date: '2016-12-26',\n     changed: [ 'Got stuck in another chimney.' ] } }\n```\n\nYAML\n\n```yaml\nv0.1.0:\n  date: \"2016-12-26\"\n  changed:\n    - Got stuck in another chimney.\n```\n\n**Array**\n\nJSON\n\n```js\n[ { date: '2016-12-26',\n    version: 'v0.1.0',\n    changed: [ 'Got stuck in another chimney.' ] } ]\n```\n\nYAML\n\n```yaml\n- version: v0.1.0\n  date: '2016-12-26'\n  changed:\n    - Got stuck in another chimney.\n```\n\n### Arbitrary entries\n\nIf you don't want to follow keep-a-changelog format, or you have an arbitrary entry that doesn't fit in one of the above categories, you can use the `description` property.\n\n**Array**\n\n```js\n[ { date: '2016-12-26',\n    version: 'v0.1.0',\n    description: [ 'Got stuck in another chimney.' ] } ]\n```\n\n**Object**\n\n```js\n{ 'v0.1.0':\n   { date: '2016-12-26',\n     description: [ 'Got stuck in another chimney.' ] } }\n```\n\n## About\n\n### Related projects\n\n[helper-changelog](https://www.npmjs.com/package/helper-changelog): Template helper for generating a markdown-formatted changelog from an object, array or yaml file. | [homepage](https://github.com/jonschlinkert/helper-changelog \"Template helper for generating a markdown-formatted changelog from an object, array or yaml file.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\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](https://github.com/jonschlinkert/stringify-changelog/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 21, 2016._","publish_time":1469081745780,"_cnpm_publish_time":1469081745780,"dist-tags":{"latest":"0.2.1"}}