get-comments

Extract javascript comments on per character basis. Comment object compatible with `acorn-extract-comments` and Esprima format.

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.