# angular-ng-truncate

> Angular Truncate - Ellipsis for your templates

Latest version **1.0.0** (published 2018-04-13) · 0 weekly downloads

## Install

```sh
npm install angular-ng-truncate
pnpm add angular-ng-truncate
yarn add angular-ng-truncate
bun add angular-ng-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 | 2018-04-13 |
| First published | 2018-04-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8 |
| Dependencies | 0 |
| Unpacked size | 970 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 310 |
| Author | M-miles |
| Maintainers | miless |

## Links

- npm: https://www.npmjs.com/package/angular-ng-truncate
- Repository: https://github.com/sparkalow/angular-truncate
- Homepage: http://sparkalow.github.com/angular-truncate
- Issues: https://github.com/sparkalow/angular-truncate/issues
- npm.io page: https://npm.io/package/angular-ng-truncate

## Recent versions

- 1.0.0 (latest) — 2018-04-13

## README

Angular Truncate
---------
This project is a filter for Angularjs to truncate text strings to a set number of characters or words and
add ellipses when needed.

[Demo](http://sparkalow.github.io/angular-truncate/)

## How to use angular truncate


###Include the javascript file.

``` html
<script src="truncate.js"></script>
```

###Inject the `truncate` filter into your app module.

```javascript
var myApp = angular.module('myApp', ['truncate']);
```

###When outputting text, apply the filter.
```html
 <p>
    {{ text | characters:25 }} or {{ text | words:5 }}
</p>
```

By default, a _word_ will not be truncated. Set the optional boolean after the character count to true.
```html
 <p>
     {{ text | characters:25 :true}}
 </p>
 ```

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