Nunchaku Pizza Master

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

    2.1.2 • Public • Published

    Angular Pipes

    angular-ngx-pipes is a library of Angular that contains some day-to-day useful pipelines.

    Table of contents

    Pipes

    • [x] Linky Pipe (linky).
    • [x] Text Pipe (text).
    • [x] Timezone Pipe (timezone).
    • [x] Html Pipe (html).
    • [x] Hours Pipe (hours).
    • [x] Safe Pipe (safe).
    • [x] Contains Pipe (contains).
    • [x] Trim Pipe (trim).
    • [x] Highlight Pipe (highlight).

    Getting started

    Step 1: Install angular-ngx-pipes:

    NPM

    npm i angular-ngx-pipes

    Step 2: Import the PipesModule:

    import {PipesModule} from 'angular-ngx-pipes';
    
    @NgModule({
      declarations: [AppComponent],
      imports: [PipesModule],
      bootstrap: [AppComponent]
    })
    export class AppModule {}

    Pipes Usage Table

    Pipe Name Return Type Input Required Description
    linky string no Converts a normal text to link.
    text string no Converts html text to normal text.
    timezone string yes Converts date-time to required timezone.
    html string no Converts normal text to html text.
    hours string yes Converts time('minutes', 'seconds') to hours-minutes.
    safe string yes Allows angular to trust the resource ('html', 'style', 'script', 'url', 'resourceUrl').
    contains boolean yes Checks if the given value is present inside a string.
    trim string no Removes any whitespaces from the string.
    highlight string yes Highlights text that contains inside a string.

    Author

    • [Sam Arora]

    License

    MIT

    Keywords

    none

    Install

    npm i angular-ngx-pipes

    DownloadsWeekly Downloads

    0

    Version

    2.1.2

    License

    none

    Unpacked Size

    88.1 kB

    Total Files

    33

    Last publish

    Collaborators

    • halfdevil