# vue-autolinker

> A simple vue-directive wrapper around [Autolinker.js](https://github.com/gregjacobs/Autolinker.js).

Latest version **1.0.1** (published 2019-11-14) · 0 weekly downloads

## Install

```sh
npm install vue-autolinker
pnpm add vue-autolinker
yarn add vue-autolinker
bun add vue-autolinker
```

## 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 | 2019-11-14 |
| First published | 2019-11-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Kasey Culmback |
| Maintainers | kculmback |

## Links

- npm: https://www.npmjs.com/package/vue-autolinker
- Repository: https://github.com/kculmback/vue-autolinker
- Issues: https://github.com/kculmback/vue-autolinker/issues
- npm.io page: https://npm.io/package/vue-autolinker

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [autolinker](https://npm.io/package/autolinker.md) ^3.11.1

## Recent versions

- 1.0.1 (latest) — 2019-11-14
- 1.0.0 — 2019-11-14

## README

# vue-autolinker

A simple vue-directive wrapper around [Autolinker.js](https://github.com/gregjacobs/Autolinker.js).

## Install

```
npm install autolinker --save
```

## Setup

In your entry file:

``` js
import Vue from 'vue'
import autolinker, { AUTOLINKER_NAME } from 'vue-autolinker'

// AUTOLINKER_NAME is optional. It is a string: 'autolinker'.
Vue.directive(AUTOLINKER_NAME, autolinker)
```

## Usage

``` js
<template>
  <div id="app">
      <p v-autolinker="exampleOne"></p>
      <p v-autolinker:[options]="exampleTwo"></p>
  </div>
</template>

<script>
export default {
  name: 'app',
  data() {
    return {
      exampleOne:
        'Text with a link (https://github.com/gregjacobs/Autolinker.js).',
      exampleTwo:
        'Text with a link (vuejs.com), a mention (@vuejs), and a hashtag (#vue).',
      options: {
        mention: 'twitter',
        hashtag: 'twitter',
      },
    }
  },
}
</script>
```

### Options
You can pass options to Autolinker.js using a Vue directive argument. All options are automatically passed to Autoprefixer.js. You can available options [here](https://github.com/gregjacobs/Autolinker.js#options).

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