Skip to content

extra-jsdoc-text.web 0.1.5

Install from the command line:
Learn more about npm packages
$ npm install @nodef/extra-jsdoc-text.web@0.1.5
Install via package.json:
"@nodef/extra-jsdoc-text.web": "0.1.5"

About this version

Utilities for processing JSDoc text.
πŸ“¦ Node.js, 🌐 Web, πŸ“œ Files, πŸ“° Docs.

This package is available in both Node.js and Web formats. The web format is exposed as extra_jsdoc_text standalone variable and can be loaded from jsDelivr CDN.

Stability: Experimental.


const fs    = require('fs');
const jsdoc = require('extra-jsdoc-text');

function main() {
  var txt = fs.readFileSync('README.md', 'utf8').replace(/\r?\n/, '\n');

  jsdoc.links(txt);
  // [
  //   {
  //     full: '[Node.js](https://www.npmjs.com/package/extra-jsdoc-text)',
  //     name: 'Node.js',
  //     reference: '',
  //     url: 'https://www.npmjs.com/package/extra-jsdoc-text'
  //   },
  //   {
  //     full: '[Web](https://www.npmjs.com/package/extra-jsdoc-text.web)',
  //     name: 'Web',
  //     reference: '',
  //     url: 'https://www.npmjs.com/package/extra-jsdoc-text.web'
  //   },
  //   ...
  // ]

  jsdoc.linkReferences(txt);
  // [
  //   {
  //     full: '[jsDelivr CDN]: https://cdn.jsdelivr.net/npm/extra-jsdoc-text.web/index.js',
  //     name: 'jsDelivr CDN',
  //     url: 'https://cdn.jsdelivr.net/npm/extra-jsdoc-text.web/index.js',
  //     title: ''
  //   },
  //   {
  //     full: '[forEachCodeBlock]: https://nodef.github.io/extra-jsdoc-text/modules.html#forEachCodeBlock',
  //     name: 'forEachCodeBlock',
  //     url: 'https://nodef.github.io/extra-jsdoc-text/modules.html#forEachCodeBlock',
  //     title: ''
  //   },
  //   ...
  // ]
}
main();


Index

Property Description
forEachCodeBlock Match code blocks in markdown text.


Details


Assets

  • extra-jsdoc-text.web-0.1.5-npm.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0