# href-content

> Get content from link tags in an HTML document.

Latest version **2.0.3** (published 2024-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install href-content
pnpm add href-content
yarn add href-content
bun add href-content
```

## 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 | 2.0.3 |
| Published | 2024-03-07 |
| First published | 2015-01-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 438 |
| Author | Jonathan Kemp |
| Maintainers | jonkemp |
| Keywords | inline, css, html, email |

## Links

- npm: https://www.npmjs.com/package/href-content
- Repository: https://github.com/jonkemp/inline-css.git#master
- Homepage: https://github.com/jonkemp/inline-css/tree/master/packages/href-content
- Issues: https://github.com/jonkemp/inline-css/issues
- npm.io page: https://npm.io/package/href-content

## Dependencies (1)

- [remote-content](https://npm.io/package/remote-content.md) ^4.0.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 2.0.3 (latest) — 2024-03-07
- 2.0.2 — 2023-02-08
- 2.0.1 — 2022-01-17
- 2.0.0 — 2020-10-24
- 1.2.3 — 2020-01-26
- 1.2.2 — 2020-01-25
- 1.2.1 — 2020-01-25
- 1.2.0 — 2020-01-19
- 1.1.0 — 2020-01-19
- 1.0.6 — 2019-10-08
- 1.0.5 — 2019-05-31
- 1.0.4 — 2018-10-24
- 1.0.3 — 2018-02-20
- 1.0.2 — 2016-02-27
- 1.0.1 — 2015-01-30
- … 1 more at https://npm.io/package/href-content/versions

## README

# href-content

[![NPM](https://nodei.co/npm/href-content.png?downloads=true)](https://nodei.co/npm/href-content/)

> Get content from link tags in an HTML document.

## Install

Install with [npm](https://npmjs.org/package/href-content)

```
npm install --save href-content
```

## Usage

```js
var getHrefContent = require('href-content');

getHrefContent('path/to/css', 'file://path/to/html', function (err, css) {
    console.log(css);
});
```

## Credit

The code for this module was originally taken from the [Juice](https://github.com/Automattic/juice) library.

## License

MIT

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