extract-link-evelexis
v1.2.0
Published
Extract Links from Markdown using Regexs for Laboratoria bootcamp
Downloads
2
Readme
Features
- Free of dependency
- Extract likns from any website
Work tool
The Trello tool was used to organize and manage our library, based on the request of requirements that they requested.
Case of use
Create a library that allows the pages of the universities to extract the links from the source or quote of that information quickly.
Basic Usage
- Import evelexis from
src
- Copy your file to
extractLinks.js
- Execute the code in
git
- The tests are performed with
npm test
Development
$ npm install evelexis
const app = require('./app.js');
const text = `# Lorem ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut [labore](https://en.wiktionary.org/wiki/labore) et
[dolore](https://en.wiktionary.org/wiki/dolore) magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
[foo](http://foo.com)
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.`;
app.extractLinksFromMd(text);
console.log(resultArray);
// [
// { href: 'https://en.wiktionary.org/wiki/labore', text: 'labore' },
// { href: 'https://en.wiktionary.org/wiki/dolore', text: 'dolore' },
// { href: 'http://foo.com', text: 'foo' },
// ]