An open API service indexing awesome lists of open source software.

https://github.com/sirleyalmeida/extratctlinksmd

Projeto Extract Links Markdown, na Laboratoria >>
https://github.com/sirleyalmeida/extratctlinksmd

eslint library node-js node-module nyc tdd-javascript test

Last synced: about 2 months ago
JSON representation

Projeto Extract Links Markdown, na Laboratoria >>

Awesome Lists containing this project

README

        

# extratctLinksMd

Esta aplicação destina-se à extração de todos os links encontrados em uma entrada de string.

## Como instalar:

```
$ npm install extratctlinksfrom-md
```

## Como utilizar:

* Formato de entrada da função: string.

Exemplo:

```node
const getLinksFromMd = require('extratctlinksfrom-md');
const str = '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.';
getLinksFromMd(str);

// [
// { href: 'https://en.wiktionary.org/wiki/labore', text: 'labore' },
// { href: 'https://en.wiktionary.org/wiki/dolore', text: 'dolore' },
// { href: 'http://foo.com', text: 'foo' },
// ]
```

## Roadmap oficial do projeto*

### Versão 3.0.0

* README translated to english.

### Versão 2.0.0

* Correção de bugs.

### Versão 1.0.0

* Funcionalidades: extração de links;
* Entrada de Strings.

## Keywords

get link, markdown.