{"_id":"@beneb/remark-behead","_rev":"3-c8f8e139edb2348413451a349d72a76b","name":"@beneb/remark-behead","description":"Add or remove heading levels","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@beneb/remark-behead","version":"2.0.0","description":"Add or remove heading levels","main":"dst/lib/index.js","scripts":{"prepublish":"npm run build","build":"babel --out-dir dst src","all":"npm run test; npm run readme","pretest":"eslint src/lib; npm run build","test":"tap --cov -R spec dst/tst/index.js","readme":"mv .babelrc b; documentation readme src/lib/index.js --readme-file Readme.md -s \".\"; mv b .babelrc"},"repository":{"type":"git","url":"git+https://github.com/ben-eb/remark-behead.git"},"keywords":["mdast","remark","behead","plugin","mdast-plugin","mdast-behead","remark-plugin","remark-behead"],"author":{"name":"mrzmmr"},"license":"ISC","dependencies":{"defop":"^1.1.4","unist-util-visit":"^1.1.0"},"devDependencies":{"babel-cli":"^6.4.5","babel-plugin-transform-es2015-arrow-functions":"^6.4.0","babel-plugin-transform-es2015-block-scoping":"^6.4.0","babel-plugin-transform-es2015-modules-commonjs":"^6.4.5","babel-plugin-transform-es2015-parameters":"^6.4.5","documentation":"github:documentationjs/documentation","eslint":"^1.10.3","remark":"^6.0.0","source-map-support":"^0.4.0","tap":"^2.3.3"},"publishConfig":{"access":"public"},"gitHead":"9b61ded9f0aa0543c7f5e0bb6f49d53ab3835028","bugs":{"url":"https://github.com/ben-eb/remark-behead/issues"},"homepage":"https://github.com/ben-eb/remark-behead#readme","_id":"@beneb/remark-behead@2.0.0","_shasum":"0b58db42be7e8946abe56aa7f24d34939283ebe2","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"beneb","email":"beneb.info@gmail.com"},"dist":{"shasum":"0b58db42be7e8946abe56aa7f24d34939283ebe2","tarball":"https://registry.npmjs.org/@beneb/remark-behead/-/remark-behead-2.0.0.tgz","integrity":"sha512-Dguh1wOjCkzj1mHqcqol6YU78G/nkreqyD6jBSID146C+Quo8Q14iOVjY47b6vmsMOWamjKrWDSPgkEAxDzTYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIjNBn5vlSyt9ulr+DoYIjN1w74+f70zvXzUCzCRfLNQIhAKSfdjD/L/xr5ahkxSjh7z0k8Bdlxe21NiTSQfr9Q++c"}]},"maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/remark-behead-2.0.0.tgz_1481901442045_0.09841251815669239"}}},"readme":"# .\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n## behead [![Build Status](https://travis-ci.org/ben-eb/remark-behead.svg?branch=master)][ci]\n\nBehead is a [remark](https://github.com/wooorm/remark) plugin to\nincrease and decrease the weight of markdown headings. Passing a\nnegative value to the weight option will decrease the heading weight.\nPassing a positive value to the weight option will increase the heading\nweight\n\n### install\n\n```sh\nnpm install [ --save ] @ben-eb/remark-behead\n```\n\n##### then\n\n```js\nimport behead from 'remark-behead'\n```\n\n**Meta**\n\n-   **version**: 1.5.2\n-   **author**: mrzmmr\n\n## options\n\n**Properties**\n\n-   `preserve` **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Defaults to true\n-   `before` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Defaults to null\n-   `after` **[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Defaults to null\n-   `weight` **[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** Defaults to 0\n\n## options.after\n\nManipulates heading nodes after but not including the given\nstring. _**Note:** When using this option, behead will start\nworking after the first occurrence of the given string._\n\n**Examples**\n\n```javascript\nremark.use(behead, {weight: 1, after: '# After this'})\n  .process('# After this\\n## Hello\\n## World')\n\n  => '# After this\\n# Hello\\n# World\\n'\n```\n\n## options.before\n\nManipulates heading nodes before but not including the given\nstring. _**Note:** When using this option, behead will stop\nworking at the first occurrence of the given string._\n\n**Examples**\n\n```javascript\nremark.use(behead, {weight: 1, before: '# Before this'})\n  .process('# Hello\\n# World\\n# Before this')\n\n  => '## Hello\\n## World\\n# Before this\\n'\n```\n\n## options.between\n\nManipulates heading nodes between but not including the two given\nstrings, starting with options.between[0] and ending with\noptions.between[1].\n\n**Examples**\n\n```javascript\nremark(behead, {weight: 1, between: ['# Hello', '# World']})\n  .process('# Hello\\n# Between\\n# World')\n\n  => '# Hello\\n## Between\\n# World\\n'\n```\n\n[ci]: https://travis-ci.org/ben-eb/remark-behead\n","maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"}],"time":{"modified":"2022-06-12T15:10:43.936Z","created":"2016-12-16T15:17:22.687Z","2.0.0":"2016-12-16T15:17:22.687Z"},"homepage":"https://github.com/ben-eb/remark-behead#readme","keywords":["mdast","remark","behead","plugin","mdast-plugin","mdast-behead","remark-plugin","remark-behead"],"repository":{"type":"git","url":"git+https://github.com/ben-eb/remark-behead.git"},"author":{"name":"mrzmmr"},"bugs":{"url":"https://github.com/ben-eb/remark-behead/issues"},"license":"ISC","readmeFilename":"Readme.md"}