# get-href-urls

> [![CircleCI](https://circleci.com/gh/mrceephax/get-href-urls/tree/master.svg?style=svg)](https://circleci.com/gh/mrceephax/get-href-urls/tree/master)

Latest version **1.0.1** (published 2017-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-href-urls
pnpm add get-href-urls
yarn add get-href-urls
bun add get-href-urls
```

Provides the command `get-href-urls`.

## 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.1 |
| Published | 2017-04-09 |
| First published | 2017-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | mrceephax |
| Maintainers | mrceephax |
| Keywords | url, urls, href |

## Links

- npm: https://www.npmjs.com/package/get-href-urls
- Repository: https://github.com/mrceephax/get-href-urls
- Homepage: https://github.com/mrceephax/get-href-urls#readme
- Issues: https://github.com/mrceephax/get-href-urls/issues
- npm.io page: https://npm.io/package/get-href-urls

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-04-09

## README

# get-href-urls

[![CircleCI](https://circleci.com/gh/mrceephax/get-href-urls/tree/master.svg?style=svg)](https://circleci.com/gh/mrceephax/get-href-urls/tree/master)

[![NPM](https://nodei.co/npm/get-href-urls.png)](https://npmjs.org/package/get-href-urls)

A utility tool for find all urls in an html page, that are inside an anchor tag.

Example matches:

    MyWebPage.html

    <a href="https://theverge.com">theverge.com</a>

To find links:

	const getHrefUrls = require("get-href-urls");
    const fs = require("fs");

	fs.readFile("./MyWebPage.html", "utf8", function (err,data) {
		if (err) {
			return console.log(err);
		}
		const urls = getHrefUrls(data);
		// output: ["https://theverge.com"]
	});
    
Using in the command line:

	curl "https://www.theverge.com" | get-href-urls
	// output: ["https://theverge.com"]

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