angular-truncate-pipes
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

angular-truncate-pipes

A collection of truncating pipes

Requirements

  • Angular >= 4.0.0

Installation

npm install angular-truncate-pipes --save

In your app.module.ts:

import { TruncatePipesModule } from 'angular-truncate-pipes';
@NgModule({
    ...
    imports: [TruncatePipesModule]
    ...
});

Background

Examples

Pipe Args Result
characters 5 {{truncateWord | characters:5}}
characters 0 {{truncateWord | characters:0}}
characters 10:true {{truncateWord | characters:10:true}}
splitcharacters 15 {{truncateWord | splitcharacters:15}}
splitcharacters {{truncateWord | splitcharacters}}
words {{truncateWord | words}}
words 2 {{truncateWord | words: 2}}

TODOS

  • Write test scripts

License

MIT

/angular-truncate-pipes/

    Package Sidebar

    Install

    npm i angular-truncate-pipes

    Weekly Downloads

    195

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    56.5 kB

    Total Files

    19

    Last publish

    Collaborators

    • austinthedeveloper