{"_id":"marked-toc","_rev":"91234","name":"marked-toc","description":"Generate a markdown TOC (table of contents).","dist-tags":{"latest":"0.3.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:30:03.000Z","created":"2013-11-08T19:40:39.741Z","0.3.0":"2014-12-10T05:05:12.268Z","0.2.8":"2014-10-19T02:14:12.572Z","0.2.6":"2014-07-07T19:12:07.939Z","0.2.5":"2014-04-20T10:35:38.181Z","0.2.4":"2014-04-20T10:31:48.328Z","0.2.3":"2014-03-21T05:05:39.332Z","0.2.2":"2014-02-17T13:24:51.677Z","0.2.1":"2014-02-03T20:14:46.598Z","0.1.5":"2013-12-17T19:49:28.606Z","0.1.4":"2013-12-09T18:34:14.013Z","0.1.3":"2013-11-30T11:43:48.534Z","0.1.2":"2013-11-30T11:28:38.662Z","0.1.1":"2013-11-08T21:21:15.806Z","0.1.0":"2013-11-08T19:40:39.741Z"},"users":{"jonschlinkert":true,"tunnckocore":true,"pje":true,"octoo":true,"dheerajvs":true,"jasonpincin":true,"jerkovicl":true,"doodlewind":true,"tmurngon":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"versions":{"0.3.0":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents).","version":"0.3.0","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"bin":{"toc":"./cli.js"},"main":"index.js","engines":{"node":">= 0.8.0"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"dependencies":{"fs-utils":"^0.5.0","gray-matter":"^0.5.1","lodash":"~2.4.1","marked":"0.3.0","template":"~0.1.6","uslug":"~1.0.3"},"keywords":["readme","markdown","toc","table of contents"],"scripts":{"test":"mocha -R spec"},"_id":"marked-toc@0.3.0","_shasum":"079a8a8da4bf76c62eff9bfabbf53fb33443837a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"079a8a8da4bf76c62eff9bfabbf53fb33443837a","size":20164,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.3.0.tgz"},"directories":{},"publish_time":1418187912268,"_cnpm_publish_time":1418187912268,"_hasShrinkwrap":false},"0.2.8":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents).","version":"0.2.8","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"bin":{"toc":"./cli.js"},"main":"index.js","engines":{"node":">= 0.8.0"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"dependencies":{"fs-utils":"^0.5.0","gray-matter":"^0.5.1","lodash":"~2.4.1","marked":"0.3.0","template":"~0.1.6","uslug":"~1.0.3"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.2.8","_shasum":"6a663a687e54e47e03ab2d057db2d6922ede1ef4","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6a663a687e54e47e03ab2d057db2d6922ede1ef4","size":19840,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.2.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.2.8.tgz"},"directories":{},"publish_time":1413684852572,"_cnpm_publish_time":1413684852572,"_hasShrinkwrap":false},"0.2.6":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.2.6","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"bin":{"toc":"./bin/toc"},"main":"index.js","engines":{"node":">= 0.8.0"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"dependencies":{"fs-utils":"~0.4.0","globule":"~0.2.0","gray-matter":"~0.3.5","lodash":"~2.4.1","marked":"0.3.0","template":"~0.1.6","uslug":"~1.0.3"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.2.6","_shasum":"006e0730f3ccd46d9ffbac3b971f26ed88cfab97","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"006e0730f3ccd46d9ffbac3b971f26ed88cfab97","size":19510,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.2.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.2.6.tgz"},"directories":{},"publish_time":1404760327939,"_cnpm_publish_time":1404760327939,"_hasShrinkwrap":false},"0.2.5":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.2.5","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"bin":{"toc":"./bin/toc"},"main":"index.js","engines":{"node":">= 0.8.0"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"dependencies":{"fs-utils":"~0.4.0","globule":"~0.2.0","gray-matter":"~0.3.5","lodash":"~2.4.1","marked":"0.3.0","template":"~0.1.6","uslug":"~1.0.3"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.2.5","dist":{"shasum":"e46ba63e3fbb2f3ed6fb3662efbffbf474461371","size":19173,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.2.5.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1397990138181,"_cnpm_publish_time":1397990138181,"_hasShrinkwrap":false},"0.2.4":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.2.4","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"bin":{"toc":"./bin/toc"},"main":"index.js","engines":{"node":">= 0.8.0"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"dependencies":{"fs-utils":"~0.4.0","globule":"~0.2.0","gray-matter":"~0.3.5","lodash":"~2.4.1","marked":"0.3.0","template":"~0.1.6","uslug":"~1.0.3"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.2.4","dist":{"shasum":"583cac4879d954e99f890c3b5175a205b9a9ef50","size":19188,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.2.4.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1397989908328,"_cnpm_publish_time":1397989908328,"_hasShrinkwrap":false},"0.2.3":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.2.3","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"bin":{"toc":"./bin/toc"},"main":"index.js","engines":{"node":">= 0.8.0"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"dependencies":{"fs-utils":"~0.2.1","globule":"~0.2.0","lodash":"~2.4.1","marked":"~0.3.1","template":"~0.1.5","uslug":"~1.0.3","relative":"~0.1.0","chalk":"~0.4.0","gray-matter":"~0.2.3"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.2.3","dist":{"shasum":"1252d5a13a6b6bb56403be80eff58945f5f1dd5e","size":19363,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.2.3.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1395378339332,"_hasShrinkwrap":false,"_cnpm_publish_time":1395378339332},"0.2.2":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.2.2","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"bin":{"toc":"./bin/toc"},"main":"index.js","engines":{"node":">= 0.8.0"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"dependencies":{"fs-utils":"~0.2.1","globule":"~0.2.0","lodash":"~2.4.1","marked":"~0.3.1","template":"~0.1.5","uslug":"~1.0.3","relative":"~0.1.0","chalk":"~0.4.0","gray-matter":"~0.2.3"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.2.2","dist":{"shasum":"4009af4b66eed6692a7c6224a743dae39a78ed51","size":18796,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.2.2.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392643491677,"_hasShrinkwrap":false,"_cnpm_publish_time":1392643491677},"0.2.1":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"bin":{"toc":"./bin/toc"},"main":"index.js","engines":{"node":">= 0.8.0"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"dependencies":{"fs-utils":"~0.2.1","globule":"~0.2.0","lodash":"~2.4.1","marked":"~0.3.1","template":"~0.1.5","uslug":"~1.0.3","relative":"~0.1.0","chalk":"~0.4.0","gray-matter":"~0.2.3"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.2.1","dist":{"shasum":"dfb663b052cd62924d37e41b84a758468aaa4976","size":19189,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.2.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1391458486598,"_hasShrinkwrap":false,"_cnpm_publish_time":1391458486598},"0.1.5":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.1.5","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">= 0.8.0"},"dependencies":{"marked":"~0.2.10","lodash":"~2.4.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-clean":"~0.5.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.1.5","dist":{"shasum":"75c565661055014a4adabd23958ae18ed93dc4d2","size":12353,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.1.5.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1387309768606,"_hasShrinkwrap":false,"_cnpm_publish_time":1387309768606},"0.1.4":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.1.4","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">= 0.8.0"},"dependencies":{"marked":"~0.2.10","lodash":"~2.4.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-clean":"~0.5.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.1.4","dist":{"shasum":"52815a2b8dbca8f4c74a290a898330a80edcfc9d","size":4111,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.1.4.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1386614054013,"_hasShrinkwrap":false,"_cnpm_publish_time":1386614054013},"0.1.3":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.1.3","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">= 0.8.0"},"dependencies":{"marked":"~0.2.10","lodash":"~2.4.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-clean":"~0.5.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.1.3","dist":{"shasum":"1b92ebe5a7f22ed441075e0117092afdbc1ad1c6","size":4112,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.1.3.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1385811828534,"_hasShrinkwrap":false,"_cnpm_publish_time":1385811828534},"0.1.2":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">= 0.8.0"},"dependencies":{"marked":"~0.2.10","lodash":"~2.4.0"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-clean":"~0.5.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.1.2","dist":{"shasum":"c160494c3f8a8a6ee3ddcc087df74777325a7d98","size":3945,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1385810918662,"_hasShrinkwrap":false,"_cnpm_publish_time":1385810918662},"0.1.1":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">= 0.8.0"},"dependencies":{"marked":"~0.2.10"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-clean":"~0.5.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.1.1","dist":{"shasum":"549b10189f507627a774aaee19139041e01580b9","size":3790,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1383945675806,"_hasShrinkwrap":false,"_cnpm_publish_time":1383945675806},"0.1.0":{"name":"marked-toc","description":"Generate a markdown TOC (table of contents), using the [marked.js](https://github.com/chjj/marked) lexer and parser.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/marked-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/marked-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/marked-toc/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">= 0.8.0"},"dependencies":{"marked":"~0.2.10"},"devDependencies":{"grunt":"~0.4.1","grunt-contrib-clean":"~0.5.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0"},"keywords":["readme","markdown","toc","table of contents"],"_id":"marked-toc@0.1.0","dist":{"shasum":"9c6e9a96056ad47ae6ad0672757a40bf1bfeb3eb","size":3938,"noattachment":false,"key":"/marked-toc/-/marked-toc-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/marked-toc/download/marked-toc-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1383939639741,"_hasShrinkwrap":false,"_cnpm_publish_time":1383939639741}},"readme":"# marked-toc [![NPM version](https://badge.fury.io/js/marked-toc.png)](http://badge.fury.io/js/marked-toc)\n\n> Generate a TOC (table of contents) for markdown files\n\n_(example)_\n<!-- toc -->\n* [Getting Started](#getting-started)\n* [Usage](#usage)\n* [Options](#options)\n  * [template](#template)\n  * [bullet](#bullet)\n  * [maxDepth](#maxdepth)\n  * [firsth1](#firsth1)\n  * [omit](#omit)\n  * [clean](#clean)\n  * [blacklist](#blacklist)\n  * [allowedChars](#allowedchars)\n* [API](#api)\n  * [toc](#toc)\n  * [toc.insert](#tocinsert)\n  * [toc.add](#tocadd)\n  * [toc.raw](#tocraw)\n* [Contributing](#contributing)\n* [Author](#author)\n* [License](#license)\n\n<!-- toc stop -->\n\n## Getting Started\n\nInstall the module with [npm](npmjs.org):\n\n```bash\nnpm i -g marked-toc --save\n```\n\nIn any markdown file, add `<!-- toc -->` where you want to add the TOC. Then in the command line, run:\n\n```bash\ntoc [filename]\n```\n\nIf you add the toc to a `README.md`, no need to add `[filename]`, just run `toc`.\n\n\n## Usage\n\n```javascript\nvar toc = require('marked-toc');\nvar file = fs.readFileSync('README.md', 'utf8');\n\n// Generate a TOC\ntoc(file);\n```\n\n## Options\n\nAll methods accept an object of options as the last argument.\n\n### template\n\nType: `String`\n\nDefault: `<%= depth %><%= bullet %>[<%= heading %>](#<%= url %>)\\n`\n\nThe Lo-Dash template used to generate the Table of Contents.\n\n**Example (this is the default):**\n\n```js\nvar tmpl = '<%= depth %><%= bullet %>[<%= heading %>](#<%= url %>)\\n';\ntoc(file, {template: tmpl});\n```\n\n### bullet\n\nType: `String|Array`\n\nDefault: `* `\n\nThe bullet to use for each item in the generated TOC. This is passed as a variable to the `<%= bullet %>` template.\n\nIf an array, like `['* ', '- ']`, the bullet point strings will be used based on the header depth.\n\n\n### maxDepth\n\nType: `Number`\n\nDefault: `3`\n\nUse headings whose depth is at most maxDepth.\n\n\n### firsth1\n\nType: `Boolean`\n\nDefault: `False`\n\nInclude the first h1-level heading in a file. For example, this prevent the first heading in a README from showing up in the TOC.\n\n\n### omit\n\nType: `Array`\n\nDefault: `['Table of Contents', 'TOC', 'TABLE OF CONTENTS']`\n\nOmit entire headings from the TOC if they have these strings.\n\n### clean\n\nType: `Array`\n\nDefault: `['mixin', 'helper', 'filter']`\n\nStrip \"blacklisted\" keywords from the headings.\n\n**Example:**\n\n```js\ntoc(file, {clean: ['docs', 'methods']});\n```\n\nconverts this:\n\n```markdown\n## docs-foo\nFoo\n\n## methods-bar\nBar\n\n```\nto:\n\n```markdown\n* [foo](#docs-foo)\n* [bar](#methods-bar)\n\n```\n\n### blacklist\n\nType: `Boolean`\n\nDefault: `true`\n\nAn array of strings used the `omit` option:\n\n```js\n['grunt', 'helper', 'handlebars-helper', 'mixin', 'filter', 'assemble-contrib', 'assemble']\n```\n\n_(These strings are used a lot in documentation headings, but (usually) shouldn't show up in the gererated TOC.)_\n\n\n### allowedChars\n\nType: `String`\n\nDefault: `-`\n\nString of chars that you want to be whitelisted when headings are \"slugified\" for links, e.g. `-_~`.\n\n**Example:**\n\n```markdown\n// This heading\n# Getting Started\n\n// Converts to this link\n* [Getting Started](#getting-started)\n\n```\n\n## API\n\nMost methods expect a string as the first paramter, so unless otherwise noted, assume that each example gets the `str` variable from:\n\n\n```js\nvar str = fs.readFileSync('README.md', 'utf8')\n```\n\n### toc\n\nGenerates a Table of Contents from a string.\n\n```js\n// Generate a TOC\nvar table = toc(str);\nfs.writeFileSync('toc.md', table);\n```\n\n### toc.insert\n\nInject a TOC at the insertion point in a string, `<!-- toc -->`.\n\n**Params:**\n\n* `str`: the content\n* `options`: object of options\n\n```js\ntoc.insert(str, options);\n```\n\n### toc.add\n\n1. Read a file and inject a TOC at the specified insertion point, `<!-- toc -->`,\n2. Write the file to the specified `dest`, _(or re-write back to the source file if no `dest` is passed)_\n\n```js\ntoc.add(src, dest, options)\n```\n\n**Example:**\n\n```js\ntoc.add('path/to/source.md', 'path/to/dest.md');\n```\n\n**Source only:**\n\n```js\ntoc.add('README.md');\n```\n\n### toc.raw\n\nOutput a \"raw\" (JSON) Table of Contents **object**, for customization and usage in templates\n\n```js\ntoc.raw(str, options);\n```\n\nReturns an object (JSON) with two properties, `data` and `toc`:\n\n* `data`: array of headings and associated properties used to construct a TOC. **TIP**: this can be extended with properties, such as src path etc.\n* `toc`: the actual Table of Contents result, as a string\n\n**Example:**\n\n```json\n{\n  // Array of\n  \"data\": [\n    {\n      \"depth\": \"\",\n      \"bullet\": \"* \",\n      \"heading\": \"Getting Started\",\n      \"url\": \"getting-started\"\n    },\n    {\n      \"depth\": \"\",\n      \"bullet\": \"* \",\n      \"heading\": \"Usage\",\n      \"url\": \"usage\"\n    }\n  ],\n\n  // String. the actual TOC\n  \"toc\": \"* [Getting Started](#getting-started)\\n* [Options](#options)\\n* [Contributing](#contributing)\\n\"\n}\n```\n\nSee [an example](./examples/toc.json).\n\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint your code using [jshint](jshint.com) and run tests with `mocha -R spec` before making a pull request.\n\n## Author\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\nCopyright (c) 2014 Jon Schlinkert, contributors\nLicensed under the MIT license.\n","_attachments":{},"homepage":"https://github.com/jonschlinkert/marked-toc","bugs":{"url":"https://github.com/jonschlinkert/marked-toc/issues"}}