{"name":"js-comments","description":"Parse JavaScript code comments and generate API documentation.","version":"0.5.3","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":{"type":"MIT","url":"https://github.com/jonschlinkert/js-comments/blob/master/LICENSE"},"files":["templates/","index.js"],"main":"index.js","engines":{"node":">=0.8"},"scripts":{"test":"mocha"},"dependencies":{"arr-union":"^2.0.1","js-comments-template":"^0.7.0","lodash":"^3.7.0","logging-helpers":"^0.4.0","parse-comments":"^0.4.1","relative":"^3.0.0","write":"^0.2.0"},"devDependencies":{"mocha":"^1.19.0","should":"^5.2.0","to-exports":"^0.1.0"},"keywords":["api","code","comment","comments","doc","docs","document","documentation","javascript","js","markdown","md","parse","readme","repo","verb"],"gitHead":"0b69edd19605b220a4a94fd56ecfca402a0b849b","_id":"js-comments@0.5.3","_shasum":"a3e3e35ea35abe542807b35d5a8c9c7ffd887097","_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":"a3e3e35ea35abe542807b35d5a8c9c7ffd887097","tarball":"http://registry-npm.ywwl.com/js-comments/download/js-comments-0.5.3.tgz","integrity":"sha512-0pPkuaO34Oh2/eXakZY2cy5rX+eAe69aRLHmeWZpCiYJagphVF0YL85OILyOcsAFWb4/5FxhU72HVc4U8dZD5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/3mq81mg+ga8QodcsX2XszjBfc68cRz9SBpw71s1lhgIhAK2nJluitWX6AU0ekdfJvAGlNPQ+kkDHufmu9+kUtiRW"}],"size":4429,"noattachment":false,"key":"/js-comments/-/js-comments-0.5.3.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":1432778966977,"_cnpm_publish_time":1432778966977,"dist-tags":{"latest":"0.5.4"}}