# extract-links-maya

> A library that extracts links from texts

Latest version **1.0.0** (published 2018-09-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install extract-links-maya
pnpm add extract-links-maya
yarn add extract-links-maya
bun add extract-links-maya
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-09-06 |
| First published | 2018-09-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mayara Ramos Rebelo |
| Maintainers | mayaflor |

## Links

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

## Dependencies (3)

- [nyc](https://npm.io/package/nyc.md) ^13.0.1
- [chai](https://npm.io/package/chai.md) ^4.1.2
- [mocha](https://npm.io/package/mocha.md) ^5.2.0

## Recent versions

- 1.0.0 (latest) — 2018-09-06

## README

# Extract links from markdown

**This JavaScript library extracts links from markdown texts**. It returns an objects with every url and name of the websites on a markdown text.


## Usage

to install, it requires npm to be already installed.
```
npm install extract-links-maya
```

### Example

```

$node
> let extractLinks = require("extract-links-maya")
> extractLinks("Hi, do you want to visit [google](www.google.com) ?"); // returns [{href: "www.google.com", text: "google"}]

```

If the texts has no links, it returns an empty array.

It returns as many links as there are on the markdown text.

It throws an error when there are only numbers.


## Version 1.0.0

Returns all links found in a text

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