JSPM

acorn-extract-comments

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 18
  • Score
    100M100P100Q58181F
  • License MIT

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.

Package Exports

  • acorn-extract-comments

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (acorn-extract-comments) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

acorn-extract-comments npmjs.com The MIT License

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.

code climate standard code style travis build status coverage status dependency status

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.

Charlike Make Reagent new message to charlike freenode #charlike

tunnckocore.tk keybase tunnckocore tunnckoCore npm tunnckoCore twitter tunnckoCore github