# vue-truncate

> A Vue filter that will truncate text to a specified length.

Latest version **1.0.0** (published 2015-10-16) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2015-10-16 |
| First published | 2015-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Brendan Neufeld |
| Maintainers | brendanneufeld |
| Keywords | vue,, vuejs,, filter,, truncate,, text |

## Links

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

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-10-16

## README

# vue-truncate

[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)

A Vue filter that will truncate text to a specified length.

## Usage


```
var Vue = require('vue');
Vue.use(require('../../util/vue-truncate'));
```
  
`<span v-text="item.description+'...'; | truncate 99 '...'"></span>`

The truncate filter requires a length argument. It can also accept a second argument being the clamp or terminal string placed after truncated text.

[![NPM](https://nodei.co/npm/vue-truncate.png)](https://www.npmjs.com/package/vue-truncate)

## License

MIT, see [LICENSE.md](http://github.com/jam3/vue-truncate/blob/master/LICENSE.md) for details.

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