JSPM

jsdoc-regex

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20684
  • Score
    100M100P100Q135312F
  • License MIT

Regular expression for matching JSDoc comment blocks and the code below them.

Package Exports

  • jsdoc-regex

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 (jsdoc-regex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

jsdoc-regex

Regular expression for matching JSDoc comment blocks and the code below them.

Install

$ npm install jsdoc-regex --save

Usage

const jsdocRegex = require('jsdoc-regex');

const methods = contents.match(jsdocRegex());

console.log(methods[0]);