# link-types

> Parse an HTML attribute value containing link types.

Latest version **3.0.0** (published 2019-04-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install link-types
pnpm add link-types
yarn add link-types
bun add link-types
```

## 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 | 3.0.0 |
| Published | 2019-04-22 |
| First published | 2016-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 8 |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Steven Vachon |
| Maintainers | stevenvachon |
| Keywords | html, link, rel, seo |

## Links

- npm: https://www.npmjs.com/package/link-types
- Repository: https://github.com/stevenvachon/link-types
- Homepage: https://github.com/stevenvachon/link-types#readme
- Issues: https://github.com/stevenvachon/link-types/issues
- npm.io page: https://npm.io/package/link-types

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2019-04-22
- 2.0.0 — 2017-05-11
- 1.1.0 — 2016-01-07
- 1.0.0 — 2016-01-06

## README

# link-types [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]

> Parse an HTML attribute value containing [link types](https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types).


Note: this library is not responsible for parsing any HTML.


## Installation

[Node.js](http://nodejs.org/) `>= 8` is required. To install, type this at the command line:
```shell
npm install link-types
```


## Usage
```js
const linkTypes = require('link-types');

linkTypes('nofollow');
//-> ['nofollow']

linkTypes(' tag  NOFOLLOW ');
//-> ['tag', 'nofollow']

linkTypes.map(' tag   NOFOLLOW ');
//-> { tag:true, nofollow:true }
```


[npm-image]: https://img.shields.io/npm/v/link-types.svg
[npm-url]: https://npmjs.com/package/link-types
[travis-image]: https://img.shields.io/travis/stevenvachon/link-types.svg
[travis-url]: https://travis-ci.org/stevenvachon/link-types

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