0.2.0 • Published 9 years ago
acorn-extract-comments v0.2.0
acorn-extract-comments
Extract JavaScript code comments from a string, using
acorn
. Optionally returns the AST and first line of code after comment - useful for parsing code context and api docs.
Install
npm i acorn-extract-comments --save
npm test
Usage
For more use-cases see the tests
var acornExtractComments = require('acorn-extract-comments')
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.