{"_id":"gfm-code-blocks","_rev":"10-6b24cc8e4e5803d9db9f144ac5ea1ffb","name":"gfm-code-blocks","description":"Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"gfm-code-blocks","description":"Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/gfm-code-blocks","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/gfm-code-blocks.git"},"bugs":{"url":"https://github.com/jonschlinkert/gfm-code-blocks/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/gfm-code-blocks/blob/master/LICENSE-MIT"}],"keywords":["backtick","block","code","exec","expression","extract","fence","fenced","fences","flavor","flavored","gfm","github","inline","lang","language","markdown","marked","match","matches","md","parse","pattern","patterns","re","regex","regexp","regular","render","replace","replacement"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"fs-utils":"^0.4.3","mocha":"*","test-helpers":"^0.1.3","verb":">= 0.2.6","verb-tag-jscomments":">= 0.1.4"},"dependencies":{"gfm-code-block-regex":"^0.1.1"},"_id":"gfm-code-blocks@0.1.0","_shasum":"2b4ac5b1f28175d2dd19d0ee173e02887be867d6","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2b4ac5b1f28175d2dd19d0ee173e02887be867d6","tarball":"https://registry.npmjs.org/gfm-code-blocks/-/gfm-code-blocks-0.1.0.tgz","integrity":"sha512-w5vsVYmpCOxiTxFcHcOYt94E/lNYihdemM7JFeD1lLSjwfcADLe+W93kR+Ol75srgnxmfPGz6Vv1TrQP69cCKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBiDbfMJ1lzS0UQBxFyPTA3uzkj6K83OTeTBKml+Vk3eAiATaRmnpDhfXFLrZLcCte5y0uDVQdy9RuOv5jUwfktyRw=="}]}},"0.2.0":{"name":"gfm-code-blocks","description":"Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/gfm-code-blocks","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/gfm-code-blocks.git"},"bugs":{"url":"https://github.com/jonschlinkert/gfm-code-blocks/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/gfm-code-blocks/blob/master/LICENSE-MIT"}],"keywords":["backtick","block","code","exec","expression","extract","fence","fenced","fences","flavor","flavored","gfm","github","inline","lang","language","markdown","marked","match","matches","md","parse","pattern","patterns","re","regex","regexp","regular","render","replace","replacement"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","test-helpers":"^0.1.3","verb":">= 0.2.6","verb-tag-jscomments":">= 0.1.4"},"dependencies":{"gfm-code-block-regex":"^0.2.1"},"_id":"gfm-code-blocks@0.2.0","_shasum":"f404c73643626f08699537bd9e545ab9ad2b0005","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f404c73643626f08699537bd9e545ab9ad2b0005","tarball":"https://registry.npmjs.org/gfm-code-blocks/-/gfm-code-blocks-0.2.0.tgz","integrity":"sha512-kNKSRlWZ6b4Qv9dHAeRYP5X4UwFAlC+NBCMgAlJ8sFw6Jz+g2lK2fDkuqq4iPszQlJseapE1CRK0n+1YUvd6Cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBBk1amXOma3YrrQeOx+hy40Hi9x+VLtqJUYdp7l4bKAIhAN0LtOcf5D6yEIvS/bxJ5iLLyPLSLfXgoZSA+dZGes7v"}]}},"0.2.1":{"name":"gfm-code-blocks","description":"Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/gfm-code-blocks","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/gfm-code-blocks.git"},"bugs":{"url":"https://github.com/jonschlinkert/gfm-code-blocks/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/gfm-code-blocks/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"gfm-code-block-regex":"^0.2.1"},"devDependencies":{"mocha":"*","should":"^4.0.4","test-helpers":"^0.1.4"},"keywords":["backtick","block","code","exec","expression","extract","fence","fenced","fences","flavor","flavored","gfm","github","inline","lang","language","markdown","marked","match","matches","md","parse","pattern","patterns","re","regex","regexp","regular","render","replace","replacement"],"gitHead":"853e93a184f08d4c3c186c7313184f9e41ad729b","_id":"gfm-code-blocks@0.2.1","_shasum":"6a2a7f37f71cd51abb71e4b753df5a2085361966","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6a2a7f37f71cd51abb71e4b753df5a2085361966","tarball":"https://registry.npmjs.org/gfm-code-blocks/-/gfm-code-blocks-0.2.1.tgz","integrity":"sha512-NTmEuPYCJu+2w12fd+e5PNaahGPHBsDDdLtUncvTI0EWxr2yfuDlzX4yXU9Ho4x2izPblNZkb5SjY+kjZ7F2JA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaljUdIXWuub1YYhlsjWdJeqwcUPY/rEzSLwfNxf7HTgIgBCNsQFlu8UQ0MbYQFUoNU44CHU2NH8NvtOGOR4HXJDw="}]}},"0.2.2":{"name":"gfm-code-blocks","description":"Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.","version":"0.2.2","homepage":"https://github.com/jonschlinkert/gfm-code-blocks","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/gfm-code-blocks.git"},"bugs":{"url":"https://github.com/jonschlinkert/gfm-code-blocks/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/gfm-code-blocks/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"gfm-code-block-regex":"^0.2.1"},"devDependencies":{"mocha":"*","should":"*","test-helpers":"^0.1.4"},"keywords":["backtick","block","code","exec","expression","extract","fence","fenced","fences","flavor","flavored","gfm","github","inline","lang","language","markdown","marked","match","matches","md","parse","pattern","patterns","re","regex","regexp","regular","render","replace","replacement"],"gitHead":"7175eaf592bacf8416f298c8d58eea0f33e8b365","_id":"gfm-code-blocks@0.2.2","_shasum":"2999d8148c451b86632c71fa6debe115ee071ffe","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2999d8148c451b86632c71fa6debe115ee071ffe","tarball":"https://registry.npmjs.org/gfm-code-blocks/-/gfm-code-blocks-0.2.2.tgz","integrity":"sha512-569mbiht9ZJxohsMAsq9y/HcCzOvyslGu6hgP9Fh1wxcKFa1tEN5uDoFyqV2ReNL+t12BTkO2oXltQlcYH2uvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqxyf+305HKfyP5NKAu/EDKpwxvmy1auDFkp602ksR0AiEA8vm8PDVFPNM7sqiJTuop0avESmHmcjgTzog9RNztxAQ="}]}},"0.3.0":{"name":"gfm-code-blocks","description":"Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/gfm-code-blocks","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/gfm-code-blocks.git"},"bugs":{"url":"https://github.com/jonschlinkert/gfm-code-blocks/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/gfm-code-blocks/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"gfm-code-block-regex":"^0.2.1"},"devDependencies":{"mocha":"*","should":"*","test-helpers":"^0.1.4"},"keywords":["backtick","block","code","exec","expression","extract","fence","fenced","fences","flavor","flavored","gfm","github","inline","lang","language","markdown","marked","match","matches","md","parse","pattern","patterns","re","regex","regexp","regular","render","replace","replacement"],"gitHead":"3cc23310ba02390a097d3bc80cb3dd3e7e0d268c","_id":"gfm-code-blocks@0.3.0","_shasum":"111c18ccbb2029b846115090caa07d2fd90fc66f","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"111c18ccbb2029b846115090caa07d2fd90fc66f","tarball":"https://registry.npmjs.org/gfm-code-blocks/-/gfm-code-blocks-0.3.0.tgz","integrity":"sha512-UTisspa7W5i+flZgPn5rl9cD7+OaRoHljPupYOtIr+/axzNExNE/chcANXQeIbhoqpkJQrRQ0jMweTrGwO9myQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHMVpRi0TVqyol1Qj/DBbB9RZIDuVgbpQYMl3XRIsLSQIgMXrJNeCTaRKOzVQjKWzb2aW2/FXsEJCZsHwo7mQiPp4="}]}},"1.0.0":{"name":"gfm-code-blocks","description":"Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/gfm-code-blocks","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Charlike Mike Reagent","url":"https://i.am.charlike.online"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/gfm-code-blocks.git"},"bugs":{"url":"https://github.com/jonschlinkert/gfm-code-blocks/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"gfm-code-block-regex":"^1.0.0"},"devDependencies":{"gulp-format-md":"^0.1.11","mocha":"^3.2.0"},"keywords":["backtick","block","blocks","code","exec","expression","extract","fence","fenced","fences","flavor","flavored","gfm","github","inline","lang","language","markdown","marked","match","matches","md","parse","pattern","patterns","re","regex","regexp","regular","render","replace","replacement"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["gfm-code-block-regex","markdown-toc","prettify-markdown","remarkable"]},"lint":{"reflinks":true}},"gitHead":"1bdaf425f1fdbcedd4966203c5e402d9019421a1","_id":"gfm-code-blocks@1.0.0","_shasum":"614d21059b844c6bbc9d588c089b25c4e8bccf0d","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.6.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"614d21059b844c6bbc9d588c089b25c4e8bccf0d","tarball":"https://registry.npmjs.org/gfm-code-blocks/-/gfm-code-blocks-1.0.0.tgz","integrity":"sha512-MdJip0Y/0UArlhvBE5heNAFgR/aJr5rdcnodC6nJK1yPKmEfhe89h9LZVn724mqcslAj5rOYT07oQoHr1tmDuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVwkUNE+SeTijiMK86mRdqMj9SZhghDdpFow5t2CE/cQIhAIyV3SFtpheZzYJNEnGWYr7+zfqeK+yEmui71xdITHom"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gfm-code-blocks-1.0.0.tgz_1489679517932_0.25302100158296525"}}},"readme":"# gfm-code-blocks [![NPM version](https://img.shields.io/npm/v/gfm-code-blocks.svg?style=flat)](https://www.npmjs.com/package/gfm-code-blocks) [![NPM monthly downloads](https://img.shields.io/npm/dm/gfm-code-blocks.svg?style=flat)](https://npmjs.org/package/gfm-code-blocks)  [![NPM total downloads](https://img.shields.io/npm/dt/gfm-code-blocks.svg?style=flat)](https://npmjs.org/package/gfm-code-blocks) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/gfm-code-blocks.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/gfm-code-blocks)\n\n> Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save gfm-code-blocks\n```\n\n## Usage\n\n```js\nvar codeBlocks = require('gfm-code-blocks');\nconsole.log(codeBlocks('usage\\n```js\\nvar qux = 123;\\n```\\nxyz'));\n//=> {lang: 'js', \n//  code: 'var qux = 123;', \n//  block: '```js\\nvar qux = 123;\\n```',\n//  start: 6,\n//  end: 30}\n```\n\n## About\n\n### Related projects\n\n* [gfm-code-block-regex](https://www.npmjs.com/package/gfm-code-block-regex): RegExp for gfm (GitHub Flavored Markdown) fenced code blocks. | [homepage](https://github.com/regexhq/gfm-code-block-regex \"RegExp for gfm (GitHub Flavored Markdown) fenced code blocks.\")\n* [markdown-toc](https://www.npmjs.com/package/markdown-toc): Generate a markdown TOC (table of contents) with Remarkable. | [homepage](https://github.com/jonschlinkert/markdown-toc \"Generate a markdown TOC (table of contents) with Remarkable.\")\n* [prettify-markdown](https://www.npmjs.com/package/prettify-markdown): Prettify, format or beautify your markdown. Whatever you want to call it, this does that… [more](https://github.com/jonschlinkert/prettify-markdown) | [homepage](https://github.com/jonschlinkert/prettify-markdown \"Prettify, format or beautify your markdown. Whatever you want to call it, this does that. Used on hundreds of projects by verb.\")\n* [remarkable](https://www.npmjs.com/package/remarkable): Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in… [more](https://github.com/jonschlinkert/remarkable) | [homepage](https://github.com/jonschlinkert/remarkable \"Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in one.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 16 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 3 | [tunnckoCore](https://github.com/tunnckoCore) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on March 16, 2017._","maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2022-06-18T08:04:34.335Z","created":"2014-08-13T09:51:15.294Z","0.1.0":"2014-08-13T09:51:15.294Z","0.2.0":"2014-09-24T01:59:44.227Z","0.2.1":"2015-04-02T13:34:34.239Z","0.2.2":"2015-04-27T00:02:41.557Z","0.3.0":"2015-05-22T00:12:25.603Z","1.0.0":"2017-03-16T15:51:59.710Z"},"homepage":"https://github.com/jonschlinkert/gfm-code-blocks","keywords":["backtick","block","blocks","code","exec","expression","extract","fence","fenced","fences","flavor","flavored","gfm","github","inline","lang","language","markdown","marked","match","matches","md","parse","pattern","patterns","re","regex","regexp","regular","render","replace","replacement"],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/gfm-code-blocks.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/gfm-code-blocks/issues"},"readmeFilename":"README.md","license":"MIT","contributors":[{"name":"Charlike Mike Reagent","url":"https://i.am.charlike.online"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}]}