{"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.3.0","homepage":"https://github.com/jonschlinkert/helper-apidocs","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/helper-apidocs"},"bugs":{"url":"https://github.com/jonschlinkert/helper-apidocs/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"async":"^0.9.0","extend-shallow":"^0.2.0","globby":"^1.2.0","js-comments":"^0.3.6","template-utils":"^0.4.1"},"devDependencies":{"handlebars":"^3.0.0","lodash":"^3.3.0","should":"^5.0.1","template":"^0.10.1"},"keywords":["api","api-docs","apidocs","code","comment","comments","docs","documentation","generate","helper","helpers"],"gitHead":"04f3409ffe5feaff3628d507b27505d68a79f24d","_id":"helper-apidocs@0.3.0","_shasum":"b2ca51d9014e982a3d10094c768a86ee6c3cf137","_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":"b2ca51d9014e982a3d10094c768a86ee6c3cf137","tarball":"http://registry-npm.ywwl.com/helper-apidocs/download/helper-apidocs-0.3.0.tgz","integrity":"sha512-NwQSnm4T70sxcoX9tmMrxzjVgwDA8mKB4610YTa8bwXxBeEUUcaFQwSw3jKlC+qHwsjug2yXrbsdDlCWe1UPTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGCbctoAxImSOC8uOl1ozB64NeZ7BpHyi7JiFL07NwC4AiBRPQj+xbLeAWhXkF0Ct3g1aHJ3QuEW0jiheNPiLu4tHA=="}],"size":2907,"noattachment":false,"key":"/helper-apidocs/-/helper-apidocs-0.3.0.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":1424709863431,"_cnpm_publish_time":1424709863431,"dist-tags":{"latest":"0.5.1"}}