{"name":"js-comments","description":"Parse JavaScript code comments and generate API documentation.","version":"0.3.5","homepage":"https://github.com/jonschlinkert/js-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/js-comments"},"bugs":{"url":"https://github.com/jonschlinkert/js-comments/issues"},"license":"MIT","files":["index.js","lib/"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"frep":"^0.2.3","globby":"^1.1.0","js-comments-template":"^0.4.2","lodash":"^3.3.0","lodash-helpers":"^0.1.0","parse-comments":"^0.3.3","relative":"^1.2.0","repeat-string":"^1.5.0"},"devDependencies":{"mocha":"^1.19.0","should":"^4.0.4"},"keywords":["api","code","comment","comments","doc","docs","document","documentation","javascript","js","markdown","md","parse","readme","repo","verb"],"gitHead":"2cb40ed55b359b00c1d55a03d32f9158ba2ea804","_id":"js-comments@0.3.5","_shasum":"286cf2b62d6e8ab2efedda119c90ec5b667fd886","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"doowb","email":"brian.woodward@gmail.com"}],"dist":{"shasum":"286cf2b62d6e8ab2efedda119c90ec5b667fd886","tarball":"http://registry-npm.ywwl.com/js-comments/download/js-comments-0.3.5.tgz","integrity":"sha512-+oV6ez8R2SHUAGpVolSrnzf2zJC8o/uuig7a6Qv7uIK8BqucdzAVyh6Wb9IdaX2feGD8gzpq2t+nNBfYyQVq5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICH6B4U45a7CNxMSBK/HMEH5ZzggG7L9G6ZQ7IK5fkJWAiEAoh4rKduLONuum5ownqfyvdixCPUIe3IZwSZRbWV4h1g="}],"size":4793,"noattachment":false,"key":"/js-comments/-/js-comments-0.3.5.tgz"},"directories":{},"readme":"# js-comments [![NPM version](https://badge.fury.io/js/js-comments.svg)](http://badge.fury.io/js/js-comments)  [![Build Status](https://travis-ci.org/jonschlinkert/js-comments.svg)](https://travis-ci.org/jonschlinkert/js-comments)\n\n> Parse JavaScript code comments and generate API documentation.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i js-comments --save\n```\n\nInstall with [bower](http://bower.io/)\n\n```sh\n$ bower install js-comments --save-dev\n```\n\n## Table of Contents\n\n<!-- toc -->\n\n* [Usage](#usage)\n* [API](#api)\n* [Other awesome projects](#other-awesome-projects)\n* [Running tests](#running-tests)\n* [Contributing](#contributing)\n* [Author](#author)\n* [License](#license)\n\n_(Table of contents generated by [verb])_\n\n<!-- tocstop -->\n\n## Usage\n\n```js\nvar comments = require('js-comments');\n```\n\n**Heads up!**, only comments with `@api public` will be rendered!\n\n## API\n\n### [.parse](index.js#L44)\n\nParse comments from the given `str`.\n\n**Params**\n\n* `str` **{String}**: The string to parse.\n* `options` **{Object}**: Options to pass to [parse-comments]\n* `returns` **{Array}**: Array of comment objects.\n\n**Example**\n\n```js\nvar fs = require('fs');\nvar str = fs.readFileSync('foo.js', 'utf8');\ncomments.parse(str, options);\n```\n\n### [.render](index.js#L60)\n\nProcess the given Lo-dash `template` string, passing a `comments` object as context.\n\n**Params**\n\n* `comments` **{Array}**: Array of comment objects.\n* `template` **{String}**: The lo-dash template to use.\n* `returns` **{String}**\n\n**Example**\n\n```js\ncomments.render(obj, options);\n```\n\n### [.renderFile](index.js#L120)\n\nWrite markdown API documentation to the given `dest` from the code\ncomments in the given JavaScript `src` file.\n\n**Params**\n\n* `src` **{String}**: Source file path.\n* `dest` **{String}**: Destination file path.\n* `options` **{Object}**\n* `returns` **{String}**: API documentation\n\n## Other awesome projects\n\n* [code-context](https://github.com/jonschlinkert/code-context): Parse a string of javascript to determine the context for functions, variables and comments based… [more](https://github.com/jonschlinkert/code-context)\n* [esprima-extract-comments](https://github.com/jonschlinkert/esprima-extract-comments): Extract code comments from string or from a glob of files using esprima.\n* [extract-comments](https://github.com/jonschlinkert/extract-comments): Extract code comments from string or from a glob of files.\n* [parse-code-context](https://github.com/jonschlinkert/parse-code-context): Parse code context in a single line of javascript, for functions, variable declarations, methods, prototype… [more](https://github.com/jonschlinkert/parse-code-context)\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/js-comments/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 © 2014-2015 Jon Schlinkert\nOriginally modified from scrawl.js. Copyright (c) 2014 [Caolan McMahon](https://github.com/caolan), contributors.\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 29, 2015._\n\n<!-- deps:mocha -->\n","publish_time":1424470277228,"_cnpm_publish_time":1424470277228,"dist-tags":{"latest":"0.5.4"}}