{"name":"update-sections","description":"Easily prepend, append, inject or replace 'sections' in a markdown string.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/update-sections","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/update-sections.git"},"bugs":{"url":"https://github.com/jonschlinkert/update-sections/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"sections":"^0.1.2"},"devDependencies":{"gulp-format-md":"*","mocha":"*"},"keywords":["append","content","heading","inject","markdown","md","prepend","section","sections","snippet"],"lintDeps":{"ignore":[]},"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"e5486d804584954c880e1d8f7a9e74e4cbc01e6e","_id":"update-sections@0.1.0","_shasum":"efc756acb3a0d041eef3e39f98a85d918551eb8a","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"efc756acb3a0d041eef3e39f98a85d918551eb8a","tarball":"http://registry-npm.ywwl.com/update-sections/download/update-sections-0.1.0.tgz","integrity":"sha512-smi4EeEd5Y7rEgtUXg4Ijj1i+1va9cZPwJ3RmJeUBg+fMXEi9NNY0el9QZYv9mDEyb4+QiMnr0t4eFqmA1TnJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICssQ6VeWTwLYQQPR6XrgjY6CjgAbOsG+bCRnn1bVmvlAiEA1k1ngWJ4SHf+IaQ/DVQyXJ0bE+6Hc9DVdxvH6IH1Tos="}],"size":2791,"noattachment":false,"key":"/update-sections/-/update-sections-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/update-sections-0.1.0.tgz_1456104970603_0.6211309190839529"},"directories":{},"readme":"# update-sections [![NPM version](https://img.shields.io/npm/v/update-sections.svg?style=flat)](https://www.npmjs.com/package/update-sections) [![NPM downloads](https://img.shields.io/npm/dm/update-sections.svg?style=flat)](https://npmjs.org/package/update-sections) [![Build Status](https://img.shields.io/travis/jonschlinkert/update-sections.svg?style=flat)](https://travis-ci.org/jonschlinkert/update-sections)\n\nEasily prepend, append, inject or replace 'sections' in a markdown string.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save update-sections\n```\n\n## Usage\n\n```js\nvar fs = require('fs');\nvar update = require('update-sections');\nvar readme = fs.readFileSync('README.md', 'utf8');\nvar snippet = fs.readFileSync('contributing.md', 'utf8');\n\n// Inject the `contributing.md` string before the \"License\" section\nvar str = update(readme, 'License', snippet, 'before');\n```\n\n## API\n\n### [update](index.js#L32)\n\nRe-write a layout with \"sections\" defined in a declarative configuration. The `sections` property must be an array of section object, and each object  must have all params defined: `contents`, `heading` and `placement`.\n\nSupported `placement` values are:\n\n* `inner` (or aliases: `inside` and `between`): inject the content directly after the heading, before the content of a section\n* `before` (or alias `prepend`): inject the content before the specified section's heading\n* `after` (or alias `append`): inject the content after the specified section's heading\n\n**Params**\n\n* `contents` **{String}**: the string with sections to update\n* `heading` **{String}**: the heading of the existing section to match for placement\n* `value` **{String}**: the \"snippet\" to inject for the section\n* `placement` **{String}**: where to place the new content, relative to the specified heading.\n* `returns` **{String}**\n\n## About\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\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/update-sections/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on July 27, 2016._","publish_time":1456104975399,"_cnpm_publish_time":1456104975399,"dist-tags":{"latest":"0.1.2"}}