# getmdlinks-memecast

> a plugin to get back all that md links you can't extract easily

Latest version **0.0.3** (published 2018-07-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install getmdlinks-memecast
pnpm add getmdlinks-memecast
yarn add getmdlinks-memecast
bun add getmdlinks-memecast
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-07-01 |
| First published | 2018-06-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ameli Gavante |
| Maintainers | memecast |

## Links

- npm: https://www.npmjs.com/package/getmdlinks-memecast
- Repository: https://github.com/memecast/extract-links-from-md
- Homepage: https://github.com/memecast/extract-links-from-md#readme
- Issues: https://github.com/memecast/extract-links-from-md/issues
- npm.io page: https://npm.io/package/getmdlinks-memecast

## Recent versions

- 0.0.3 (latest) — 2018-07-01
- 0.0.2 — 2018-06-30
- 0.0.1 — 2018-06-30

## README

# extractLinksFromMd

* **Track:** _Common Core_
* **Curso:** _JS Deep Dive: Crea tu propia librería usando JavaScript_
* **Unidad:** _Producto final_

***

Implementar un módulo de Node.js que reciba un string (en formato Markdown) y
extraiga todos los links encontrados. La implementación debe ser una función que
recibe un string y devuelve un arreglo de objetos como se muestra en el este
ejemplo:

```js
const extractLinksFromMd = require('extract-links-from-md');
const str = `# 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.`;

const links = extractLinksFromMd(str);

console.log(links);
// [
//   { href: 'https://en.wiktionary.org/wiki/labore', text: 'labore' },
//   { href: 'https://en.wiktionary.org/wiki/dolore', text: 'dolore' },
//   { href: 'http://foo.com', text: 'foo' },
// ]
```

---
_Source: https://npm.io/package/getmdlinks-memecast · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
