{"name":"helper-apidocs","description":"Template helper for automatically generating API docs from code comments. The sync version works with handlebars, lo-dash, or any template engine that supports helper functions. The async version is compatible with Verb, Assemble, or any application based","version":"0.1.1","homepage":"https://github.com/jonschlinkert/helper-apidocs","author":{"name":"Jon Schlinkert","url":"/**"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/helper-apidocs.git"},"bugs":{"url":"https://github.com/jonschlinkert/helper-apidocs/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/helper-apidocs/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"handlebars":"^2.0.0","lodash":"^2.4.1","mocha":"*","should":"*","template":"^0.4.1","verb":"^0.3.7"},"dependencies":{"async":"^0.9.0","extend-shallow":"^0.1.1","globby":"^1.0.0","js-comments":"^0.3.4","template-utils":"^0.1.6"},"keywords":["api","api-docs","apidocs","code","comment","comments","docs","documentation","generate","helper","helpers"],"_id":"helper-apidocs@0.1.1","_shasum":"fdeaf18ea0af1c643fb168e0e3899551de794136","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"fdeaf18ea0af1c643fb168e0e3899551de794136","tarball":"http://registry-npm.ywwl.com/helper-apidocs/download/helper-apidocs-0.1.1.tgz","integrity":"sha512-jUfSOxbEBkE5cDIdcw/svKQjGQhkgwcF79tcFNLoenglkE3BN7ygO6RaKmAWsZh8L+W0JihGrM9ecnvG87KmEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB4dnBCUfz4yCHVAI30Qr/cNT08s2WEBQV4zInksbSZjAiEAmXzas79LTKWxUnBDLxvX16hOPlihj/YRYVRENsYOO/E="}],"size":4347,"noattachment":false,"key":"/helper-apidocs/-/helper-apidocs-0.1.1.tgz"},"directories":{},"readme":"# helper-apidocs [![NPM version](https://img.shields.io/npm/v/helper-apidocs.svg)](https://www.npmjs.com/package/helper-apidocs) [![Build Status](https://img.shields.io/travis/jonschlinkert/helper-apidocs.svg)](https://travis-ci.org/jonschlinkert/helper-apidocs)\n\n> Template helper for automatically generating API docs from code comments. Should work with any template engine.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i helper-apidocs --save\n```\n\n## Example usage\n\nWith Lo-Dash or Underscore:\n\n```js\n<%= apidocs(\"index.js\") %>\n```\n\nWith Handlebars:\n\n```handlebars\n{{apidocs \"index.js\"}}\n```\n\nWith Verb (lo-dash, with special delimiters to avoid delimiter collision in markdown docs):\n\n```js\n{%= apidocs('index.js') %};\n```\n\n## Register the helper\n\n> This should work with any engine, here are a few examples\n\n### [template](https://github.com/jonschlinkert/template)\n\nRegister the helper for use with any template engine\n\n```js\ntemplate.helper('apidocs', require('helper-apidocs'));\n```\n\n### [assemble](https://github.com/assemble/assemble)\n\nTo register the helper for use with [assemble](https://github.com/assemble/assemble)v0.6.x:\n\n```js\nassemble.helper('apidocs', require('helper-apidocs'));\n```\n\n### [verb](https://github.com/assemble/verb)\n\nRegister the helper for use with [verb](https://github.com/assemble/verb):\n\n```js\nvar verb = require('verb');\nverb.helper('apidocs', require('helper-apidocs'));\n\nverb.task('default', function() {\n  verb.src('.verb*.md')\n    .pipe(verb.dest('./'));\n});\n```\n\n### [handlebars](https://github.com/wycats/handlebars.js/)\n\n```js\nvar handlebars = require('handlebars');\nhandlebars.registerHelper('apidocs', require('helper-apidocs'));\n```\n\n### [Lo-Dash](https://lodash.com/) or [underscore](https://github.com/jashkenas/underscore)\n\n```js\n// as a mixin\n_.mixin({apidocs: apidocsHelper});\n_.template('<%= _.apidocs(\"fixtures/*.js\") %>', {});\n\n// passed on the context\n_.template('<%= apidocs(\"fixtures/*.js\") %>', {apidocs: apidocsHelper});\n\n// as an import\nvar settings = {imports: {apidocs: apidocsHelper}};\n_.template('<%= apidocs(\"fixtures/*.js\") %>', {}, settings);\n```\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/helper-apidocs/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 14, 2015._","publish_time":1417481822310,"_cnpm_publish_time":1417481822310,"dist-tags":{"latest":"0.5.1"}}