# linkable-js

> Makes all elements with class="linkable" a link to data-href

Latest version **1.0.7** (published 2020-03-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install linkable-js
pnpm add linkable-js
yarn add linkable-js
bun add linkable-js
```

## 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.7 |
| Published | 2020-03-18 |
| First published | 2019-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | shaack.com |
| Maintainers | shaack |
| Keywords | html, tools |

## Links

- npm: https://www.npmjs.com/package/linkable-js
- Repository: https://github.com/shaack/linkable-js
- Homepage: https://github.com/shaack/linkable-js#readme
- Issues: https://github.com/shaack/linkable-js/issues
- npm.io page: https://npm.io/package/linkable-js

## 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

- 1.0.7 (latest) — 2020-03-18
- 1.0.6 — 2019-12-11
- 1.0.5 — 2019-12-11
- 1.0.4 — 2019-12-11
- 1.0.3 — 2019-12-11

## README

# linkable-js

Make every HTML Element a link by setting its class to `linkable`.

## Example

```html
<div class="linkable" data-href="https://shaack.com">
    This will link to shaack.com
</div>
<script src="src/linkable.js"></script>
```
The div ist now clickable, has `cursor="pointer"` and links to
shaack.com.

## install


Use npm:
```
npm install -save linkable-js
```

Or just download this repository.

## use

Just include the script `linkable.js`.
```html
<script src="/node_modules/linkable-js/src/linkable.js"></script>
```
Now all elements with `class="linkable"` are links to their
`data-href` attribute.

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