# asciidoc-link-extractor

> Extract all hyperlinks from asciidoc files.

Latest version **1.0.3** (published 2020-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install asciidoc-link-extractor
pnpm add asciidoc-link-extractor
yarn add asciidoc-link-extractor
bun add asciidoc-link-extractor
```

## 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.3 |
| Published | 2020-01-10 |
| First published | 2017-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gaurav Nelson |
| Maintainers | gaurav-nelson |
| Keywords | asciidoc, link, hyperlinks, extractor |

## Links

- npm: https://www.npmjs.com/package/asciidoc-link-extractor
- Repository: https://github.com/gaurav-nelson/asciidoc-link-extractor
- Homepage: https://github.com/gaurav-nelson/asciidoc-link-extractor#readme
- Issues: https://github.com/gaurav-nelson/asciidoc-link-extractor/issues
- npm.io page: https://npm.io/package/asciidoc-link-extractor

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2020-01-10
- 1.0.2 — 2018-02-19
- 1.0.1 — 2018-02-08
- 1.0.0 — 2017-06-12

## README

# asciidoc-link-extractor

Extracts hyperlinks from asciidoc files.

## Installation

    npm install --save asciidoc-link-extractor

## API

### asciidocLinkExtractor(asciidocFile)

Parameters:

* `asciidocFile` is a string in asciidoc format.

Returns:

* an array containing all hyperlinks from the file.

## Example Usage

```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);
});

```

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