{"_id":"gfm-code-blocks","_rev":"77283","name":"gfm-code-blocks","description":"Extract gfm (GitHub Flavored Markdown) fenced code blocks from a string.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:24:51.000Z","created":"2014-08-13T09:51:15.294Z","1.0.0":"2017-03-16T15:51:59.710Z","0.3.0":"2015-05-22T00:12:25.603Z","0.2.2":"2015-04-27T00:02:41.557Z","0.2.1":"2015-04-02T13:34:34.239Z","0.2.0":"2014-09-24T01:59:44.227Z","0.1.0":"2014-08-13T09:51:15.294Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/gfm-code-blocks.git"},"versions":{"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","size":2937,"noattachment":false,"key":"/gfm-code-blocks/-/gfm-code-blocks-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gfm-code-blocks/download/gfm-code-blocks-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gfm-code-blocks-1.0.0.tgz_1489679517932_0.25302100158296525"},"directories":{},"publish_time":1489679519710,"_cnpm_publish_time":1489679519710,"_hasShrinkwrap":false},"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","size":2294,"noattachment":false,"key":"/gfm-code-blocks/-/gfm-code-blocks-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gfm-code-blocks/download/gfm-code-blocks-0.3.0.tgz"},"directories":{},"publish_time":1432253545603,"_cnpm_publish_time":1432253545603,"_hasShrinkwrap":false},"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","size":2268,"noattachment":false,"key":"/gfm-code-blocks/-/gfm-code-blocks-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/gfm-code-blocks/download/gfm-code-blocks-0.2.2.tgz"},"directories":{},"publish_time":1430092961557,"_cnpm_publish_time":1430092961557,"_hasShrinkwrap":false},"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","size":1863,"noattachment":false,"key":"/gfm-code-blocks/-/gfm-code-blocks-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/gfm-code-blocks/download/gfm-code-blocks-0.2.1.tgz"},"directories":{},"publish_time":1427981674239,"_cnpm_publish_time":1427981674239,"_hasShrinkwrap":false},"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","size":3662,"noattachment":false,"key":"/gfm-code-blocks/-/gfm-code-blocks-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gfm-code-blocks/download/gfm-code-blocks-0.2.0.tgz"},"directories":{},"publish_time":1411523984227,"_cnpm_publish_time":1411523984227,"_hasShrinkwrap":false},"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","size":3645,"noattachment":false,"key":"/gfm-code-blocks/-/gfm-code-blocks-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/gfm-code-blocks/download/gfm-code-blocks-0.1.0.tgz"},"directories":{},"publish_time":1407923475294,"_cnpm_publish_time":1407923475294,"_hasShrinkwrap":false}},"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._","_attachments":{},"homepage":"https://github.com/jonschlinkert/gfm-code-blocks","bugs":{"url":"https://github.com/jonschlinkert/gfm-code-blocks/issues"},"license":"MIT"}