{"_id":"template-toc","_rev":"95578","name":"template-toc","description":"Middleware for generating a markdown-formatted table of contents with Template, or Template-based applications","dist-tags":{"latest":"0.6.2"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:31:53.000Z","created":"2015-03-15T02:47:05.264Z","0.6.2":"2015-12-16T06:38:35.335Z","0.6.1":"2015-12-15T21:59:38.487Z","0.6.0":"2015-12-15T21:34:36.555Z","0.5.1":"2015-12-15T13:08:10.259Z","0.5.0":"2015-12-11T18:44:04.513Z","0.4.0":"2015-10-21T21:41:13.757Z","0.3.3":"2015-04-23T07:34:15.248Z","0.3.2":"2015-03-25T10:31:41.017Z","0.3.1":"2015-03-22T10:24:27.185Z","0.3.0":"2015-03-21T20:49:40.089Z","0.2.1":"2015-03-21T20:42:05.751Z","0.2.0":"2015-03-19T02:33:14.025Z","0.1.1":"2015-03-15T02:50:41.530Z","0.1.0":"2015-03-15T02:47:05.264Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/template-toc.git"},"versions":{"0.6.2":{"name":"template-toc","description":"Middleware for generating a markdown-formatted table of contents with Template, or Template-based applications","version":"0.6.2","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","is-primitive":"^2.0.0","markdown-toc":"^0.12.2"},"devDependencies":{"assemble-loader":"^0.2.4","engine-base":"^0.1.2","mocha":"*","should":"*","templates":"^0.6.3"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"verb":{"related":{"list":["markdown-toc","markdown-utils","remarkable","templates","verb"]},"toc":{"insert":true},"plugins":["gulp-format-md"],"reflinks":["assemble","templates","verb"],"layout":"default"},"gitHead":"956ebad7f4cc5ad807693a49353131c28de34bfd","_id":"template-toc@0.6.2","_shasum":"ad5831631d38480c6b536458ad296bbb563008aa","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ad5831631d38480c6b536458ad296bbb563008aa","size":4043,"noattachment":false,"key":"/template-toc/-/template-toc-0.6.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.6.2.tgz"},"directories":{},"publish_time":1450247915335,"_cnpm_publish_time":1450247915335,"_hasShrinkwrap":false},"0.6.1":{"name":"template-toc","description":"Middleware for generating a markdown-formatted table of contents with Template, or Template-based applications","version":"0.6.1","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","is-primitive":"^2.0.0","markdown-toc":"^0.12.2"},"devDependencies":{"assemble-loader":"^0.2.4","engine-base":"^0.1.2","mocha":"*","should":"*","templates":"^0.6.3"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"verb":{"related":{"list":["markdown-toc","markdown-utils","remarkable","templates","verb"]},"toc":{"insert":true},"plugins":["gulp-format-md"],"reflinks":["assemble","templates","verb"],"layout":"default"},"gitHead":"956ebad7f4cc5ad807693a49353131c28de34bfd","_id":"template-toc@0.6.1","_shasum":"f2b217540e660c5d2d87b700ed2b82ea9aec410d","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f2b217540e660c5d2d87b700ed2b82ea9aec410d","size":4076,"noattachment":false,"key":"/template-toc/-/template-toc-0.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.6.1.tgz"},"directories":{},"publish_time":1450216778487,"_cnpm_publish_time":1450216778487,"_hasShrinkwrap":false},"0.6.0":{"name":"template-toc","description":"Middleware for generating a markdown-formatted table of contents with Template, or Template-based applications","version":"0.6.0","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","is-primitive":"^2.0.0","markdown-toc":"^0.12.2"},"devDependencies":{"assemble-loader":"^0.2.4","engine-base":"^0.1.2","mocha":"*","should":"*","templates":"^0.6.3"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"verb":{"related":{"list":["markdown-toc","markdown-utils","remarkable","templates","verb"]},"toc":{"insert":true},"plugins":["gulp-format-md"],"reflinks":["assemble","templates","verb"],"layout":"default"},"gitHead":"9da8ea31d464761399745bbbbf05985a8bd9773e","_id":"template-toc@0.6.0","_shasum":"247f5f2b36be6b000c7023d0357554eb99f26bc6","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"247f5f2b36be6b000c7023d0357554eb99f26bc6","size":4082,"noattachment":false,"key":"/template-toc/-/template-toc-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.6.0.tgz"},"directories":{},"publish_time":1450215276555,"_cnpm_publish_time":1450215276555,"_hasShrinkwrap":false},"0.5.1":{"name":"template-toc","description":"Middleware for generating a markdown-formatted table of contents with Template, or Template-based applications","version":"0.5.1","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","is-primitive":"^2.0.0","markdown-toc":"^0.11.7"},"devDependencies":{"assemble-loader":"^0.2.4","engine-base":"^0.1.2","mocha":"*","should":"*","templates":"^0.6.3"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"verb":{"related":{"list":["remarkable","markdown-toc","markdown-utils","verb","template"]}},"gitHead":"cbb6e5455eb1e4879b4ef20e17c15301e6b1e28c","_id":"template-toc@0.5.1","_shasum":"151c46e318f9c79131ac944ca69dbd88c7508da9","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"151c46e318f9c79131ac944ca69dbd88c7508da9","size":3685,"noattachment":false,"key":"/template-toc/-/template-toc-0.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.5.1.tgz"},"directories":{},"publish_time":1450184890259,"_cnpm_publish_time":1450184890259,"_hasShrinkwrap":false},"0.5.0":{"name":"template-toc","description":"Middleware for generating a markdown-formatted table of contents with Template, or Template-based applications","version":"0.5.0","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","markdown-toc":"^0.11.7"},"devDependencies":{"assemble-loader":"^0.2.4","engine-base":"^0.1.2","mocha":"*","should":"*","templates":"^0.6.3"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"verb":{"related":{"list":["remarkable","markdown-toc","markdown-utils","verb","template"]}},"gitHead":"99b2eaa79a84b1ee90f4253071a76a6c8c3d98d5","_id":"template-toc@0.5.0","_shasum":"2daa5618cd93d26cb3a863d238b8bb6b2f0bb8ba","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2daa5618cd93d26cb3a863d238b8bb6b2f0bb8ba","size":3642,"noattachment":false,"key":"/template-toc/-/template-toc-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.5.0.tgz"},"directories":{},"publish_time":1449859444513,"_cnpm_publish_time":1449859444513,"_hasShrinkwrap":false},"0.4.0":{"name":"template-toc","description":"Middleware for generating a markdown-formatted table of contents with Template, or Template-based applications","version":"0.4.0","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","markdown-toc":"^0.11.7"},"devDependencies":{"engine-base":"^0.1.2","mocha":"*","should":"*","template":"^0.15.0"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"gitHead":"3f20596f790cad850b9de93a601206b63b409758","_id":"template-toc@0.4.0","_shasum":"992d6faed22143a390c48418cdd6d57af70f403a","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"992d6faed22143a390c48418cdd6d57af70f403a","size":3521,"noattachment":false,"key":"/template-toc/-/template-toc-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.4.0.tgz"},"directories":{},"publish_time":1445463673757,"_cnpm_publish_time":1445463673757,"_hasShrinkwrap":false},"0.3.3":{"name":"template-toc","description":"Middleware for generating a markdown Table of Contents with Template or applications based on Template.","version":"0.3.3","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/template-toc/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","template":"^0.10.2"},"dependencies":{"extend-shallow":"^1.1.2","markdown-toc":"^0.11.1"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"gitHead":"906a2a7e2ece847db761173dbb7dbe1f1427c62b","_id":"template-toc@0.3.3","_shasum":"35a915321e592f26d9cc90d9e565e00eecfffc75","_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":"35a915321e592f26d9cc90d9e565e00eecfffc75","size":3392,"noattachment":false,"key":"/template-toc/-/template-toc-0.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.3.3.tgz"},"directories":{},"publish_time":1429774455248,"_cnpm_publish_time":1429774455248,"_hasShrinkwrap":false},"0.3.2":{"name":"template-toc","description":"Middleware for generating a markdown Table of Contents with Template or applications based on Template.","version":"0.3.2","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/template-toc/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","template":"^0.10.2"},"dependencies":{"extend-shallow":"^1.1.2","markdown-toc":"^0.11.0"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"gitHead":"8bf84d8a219ada2e0c98f291d2426586a3c5e540","_id":"template-toc@0.3.2","_shasum":"1dd308929b3df13a272c39c19a4350dc82958ea8","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1dd308929b3df13a272c39c19a4350dc82958ea8","size":3506,"noattachment":false,"key":"/template-toc/-/template-toc-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.3.2.tgz"},"directories":{},"publish_time":1427279501017,"_cnpm_publish_time":1427279501017,"_hasShrinkwrap":false},"0.3.1":{"name":"template-toc","description":"Middleware for generating a markdown Table of Contents with Template or applications based on Template.","version":"0.3.1","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/template-toc/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","template":"^0.10.2"},"dependencies":{"extend-shallow":"^1.1.2","markdown-toc":"^0.10.0"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"gitHead":"acf42f1f7855148ae67a93825679b69f425ce632","_id":"template-toc@0.3.1","_shasum":"35a6f562d6c403cd47f041d8cfb72fd4eb010794","_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":"35a6f562d6c403cd47f041d8cfb72fd4eb010794","size":3288,"noattachment":false,"key":"/template-toc/-/template-toc-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.3.1.tgz"},"directories":{},"publish_time":1427019867185,"_cnpm_publish_time":1427019867185,"_hasShrinkwrap":false},"0.3.0":{"name":"template-toc","description":"Middleware for generating a markdown Table of Contents with Template or applications based on Template.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/template-toc/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","template":"^0.11.1"},"dependencies":{"extend-shallow":"^1.1.2","markdown-toc":"^0.10.0"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"gitHead":"76f733d11aec12b122c55ef5ab6f16e3c22ce17e","_id":"template-toc@0.3.0","_shasum":"9214f1109603759702c23ba2e3373ed02819ea82","_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":"9214f1109603759702c23ba2e3373ed02819ea82","size":3260,"noattachment":false,"key":"/template-toc/-/template-toc-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.3.0.tgz"},"directories":{},"publish_time":1426970980089,"_cnpm_publish_time":1426970980089,"_hasShrinkwrap":false},"0.2.1":{"name":"template-toc","description":"Middleware for generating a markdown Table of Contents with Template or applications based on Template.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/template-toc/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","template":"^0.11.1"},"dependencies":{"extend-shallow":"^1.1.2","markdown-toc":"^0.10.0"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"gitHead":"85db2d4333cafa480368a1599681b59511e05ac2","_id":"template-toc@0.2.1","_shasum":"4f8751dd211d41f81146d64d92f8726ff8595889","_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":"4f8751dd211d41f81146d64d92f8726ff8595889","size":3161,"noattachment":false,"key":"/template-toc/-/template-toc-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.2.1.tgz"},"directories":{},"publish_time":1426970525751,"_cnpm_publish_time":1426970525751,"_hasShrinkwrap":false},"0.2.0":{"name":"template-toc","description":"Middleware for generating a markdown Table of Contents with Template or applications based on Template.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/template-toc/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*","template":"^0.11.1"},"dependencies":{"extend-shallow":"^1.1.2","markdown-toc":"^0.9.0"},"keywords":["contents","docs","documentation","generate","insert","markdown","md","readme","table","template","toc"],"gitHead":"6373ae9b03ec1118ae4275350a2ec92006028684","_id":"template-toc@0.2.0","_shasum":"66b7a24e34deeed2a6c527bfaf9b2d51709fa5af","_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":"66b7a24e34deeed2a6c527bfaf9b2d51709fa5af","size":3175,"noattachment":false,"key":"/template-toc/-/template-toc-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.2.0.tgz"},"directories":{},"publish_time":1426732394025,"_cnpm_publish_time":1426732394025,"_hasShrinkwrap":false},"0.1.1":{"name":"template-toc","description":"Middleware for generating a markdown Table of Contents with Template or applications based on Template.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/template-toc/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^1.1.2","markdown-toc":"^0.8.1"},"devDependencies":{"mocha":"*","should":"*","template":"^0.11.1"},"keywords":[],"gitHead":"b10824d00f547c738236bd71316665dcc8c8e201","_id":"template-toc@0.1.1","_shasum":"29dd913734eb42c0a999a7bcbb1a076ed7520260","_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":"29dd913734eb42c0a999a7bcbb1a076ed7520260","size":2937,"noattachment":false,"key":"/template-toc/-/template-toc-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.1.1.tgz"},"directories":{},"publish_time":1426387841530,"_cnpm_publish_time":1426387841530,"_hasShrinkwrap":false},"0.1.0":{"name":"template-toc","description":"Middleware for generating a markdown Table of Contents with Template.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/template-toc","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/template-toc.git"},"bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/template-toc/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^1.1.2","markdown-toc":"^0.8.1"},"devDependencies":{"mocha":"*","should":"*","template":"^0.11.1"},"keywords":[],"_id":"template-toc@0.1.0","_shasum":"03c551e65706fc55e899fc0ec7462e99018af3a7","_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":"03c551e65706fc55e899fc0ec7462e99018af3a7","size":2904,"noattachment":false,"key":"/template-toc/-/template-toc-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/template-toc/download/template-toc-0.1.0.tgz"},"directories":{},"publish_time":1426387625264,"_cnpm_publish_time":1426387625264,"_hasShrinkwrap":false}},"readme":"# template-toc [![NPM version](https://img.shields.io/npm/v/template-toc.svg)](https://www.npmjs.com/package/template-toc) [![Build Status](https://img.shields.io/travis/jonschlinkert/template-toc.svg)](https://travis-ci.org/jonschlinkert/template-toc)\n\n> Middleware for generating a markdown-formatted table of contents with Template, or Template-based applications\n\n<!-- toc -->\n\n* [Install](#install)\n* [Usage](#usage)\n  - [Two Steps](#two-steps)\n  - [Templates.js](#templatesjs)\n  - [Verb](#verb)\n  - [Assemble](#assemble)\n* [Pro-tip](#pro-tip)\n* [Related projects](#related-projects)\n* [Running tests](#running-tests)\n* [Contributing](#contributing)\n* [Author](#author)\n* [License](#license)\n\n_(TOC generated by [verb](https://github.com/verbose/verb))_\n\n<!-- tocstop -->\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i template-toc --save\n```\n\n## Usage\n\n```js\nvar toc = require('template-toc');\n```\n\n### Two Steps\n\n**1. [Register the middleware](#usage-with-template)**\n\nRegister with [templates](https://github.com/jonschlinkert/templates), [verb](https://github.com/verbose/verb), [assemble](http://assemble.io) or any other application based on [templates](https://github.com/jonschlinkert/templates)\n\n**2. Add a TOC marker**\n\nAdd the following to any markdown file that should get a Table of Contents:\n\n```html\n<!-- toc -->\n```\n\n### Templates.js\n\nUsage with [template.js](https://github.com/jonschlinkert/templates):\n\n```js\nvar Templates = require('templates');\nvar templates = new Templates();\n```\n\n**Pre-render middleware**\n\nIf you want the TOC to be generated before layouts are used or partials are injected into pages, use the `.preRender()` method.\n\n```js\ntemplates.preRender(/\\.md$/, toc(template));\n```\n\nThis project's [verbfile](./.verb.md) is a good example. Verb uses this middleware with `.preRender()` so that the generated TOC only includes \"top-level\" headings that are in the template, and none of the headings from partials are includes.\n\n**Post-render middleware**\n\nIf you want the TOC to be generated **after** layouts are used or partials are injected into pages, use the `.postRender()` method.\n\n```js\ntemplates.postRender(/\\.md$/, toc(template));\n```\n\n**Rendering templates**\n\nOnce the middlware is setup, any templates with a `.md` extension and a `<!-- toc -->` comment will have a TOC injected.\n\n```js\ntemplates.render('README.md', function(err, content) {\n  console.log(content);\n});\n```\n\nVisit [templates](https://github.com/jonschlinkert/templates) for documentation.\n\n### Verb\n\nUsage with [verb](https://github.com/verbose/verb):\n\n```js\nvar verb = require('verb'); // or assemble\nvar app = verb();\n\napp.preRender(/\\.md$/, toc(app));\n// or \napp.postRender(/\\.md$/, toc(app));\n```\n\nVisit [verb](https://github.com/verbose/verb) for documentation.\n\n### Assemble\n\nUsage with [assemble](http://assemble.io):\n\n```js\nvar assemble = require('assemble'); \nvar app = assemble();\n\napp.preRender(/\\.md$/, toc(app));\n// or \napp.postRender(/\\.md$/, toc(app));\n```\n\nVisit [assemble](http://assemble.io) for documentation.\n\n## Pro-tip\n\n**Escaping**\n\nIf, for some reason, you need to use the `<!- toc -->` comment in documentation and you do not want it to be rendered, just add an extra `!` after the first angle bracket, and the extra `!` will be removed but the TOC will not be rendered.\n\n```html\n<!-- toc -->\n```\n\n## Related projects\n\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)\n* [markdown-utils](https://www.npmjs.com/package/markdown-utils): Micro-utils for creating markdown snippets. | [homepage](https://github.com/jonschlinkert/markdown-utils)\n* [remarkable](https://www.npmjs.com/package/remarkable): Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in… [more](https://www.npmjs.com/package/remarkable) | [homepage](https://github.com/jonschlinkert/remarkable)\n* [templates](https://www.npmjs.com/package/templates): System for creating and managing template collections, and rendering templates with any node.js template engine.… [more](https://www.npmjs.com/package/templates) | [homepage](https://github.com/jonschlinkert/templates)\n* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://www.npmjs.com/package/verb) | [homepage](https://github.com/verbose/verb)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/template-toc/issues/new).\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 © 2015 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb) on December 15, 2015._","_attachments":{},"homepage":"https://github.com/jonschlinkert/template-toc","bugs":{"url":"https://github.com/jonschlinkert/template-toc/issues"},"license":"MIT"}