Extract all hyperlinks from asciidoc files.
npm install asciidoc-link-extractorExtracts hyperlinks from asciidoc files.
npm install --save asciidoc-link-extractor
Parameters:
* asciidocFile is a string in asciidoc format.
Returns:
* an array containing all hyperlinks from the file.
``javascript
"use strict";
var fs = require('fs');
var asciidocLinkExtractor = require(asciidoc-links-extractor);
var asciidocFile = fs.readFileSync("./test.adoc").toString();
var links = asciidocLinkExtractor(asciidocFile);
links.forEach(function (link) {
console.log(link);
});
``