jsdoc-inline-lex
lex inline tags from jsdoc text
Last updated 12 years ago by tmcw .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install jsdoc-inline-lex 
SYNC missed versions from official npm registry.

lex

Lex tokens out of a string input that represents some JSDoc-embedded text.

name description
text input text.

Examples

var result = lex('See {@link MyClass}.');
// returns
result = [
  {
    "type": "text",
    "capture": [
      " See "
    ]
  },
  {
    "type": "link",
    "capture": [
      "{@link MyClass}",
      "MyClass"
    ]
  },
  {
    "type": "text",
    "capture": [
      ".\n"
    ]
  }
];

Returns array of lexed tokens.

Current Tags

  • 1.0.1                                ...           latest (12 years ago)

2 Versions

  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 10
Today 0
This Week 1
This Month 7
Last Day 0
Last Week 2
Last Month 2
Dependencies (0)
None
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE