0.1.7 • Published 6 years ago

ngx-persian-pipe v0.1.7

Weekly downloads
64
License
-
Repository
github
Last release
6 years ago

ngx-persian-pipe

Persian pipes for Angular 2+ applications.

Install

npm install ngx-persian-pipe --save

Usage

Import PersianPipesModule into your app.module.ts as follows:

import { PersianPipesModule } from 'ngx-persian-pipe';

  imports: [
    BrowserModule,
    PersianPipesModule
  ],

##Examples: Use in your app templates as follows:

{{'123' | perNumber}} // output => ۱۲۳

{{'۱۲۳' | perToEngNumber}} // output => 123

{{'123' | numToPerWord}} // => صد و بیست و سه

{{'-123123123' | moneyFormatter: 'IRR'}} // => -۱۲۳,۱۲۳,۱۲۳ ریال {{'123123123' | moneyFormatter}} // => ۱۲۳,۱۲۳,۱۲۳

Contribute

  1. install nodejs and npm.
  2. install @angular/cli.
  3. clone the project.
  4. Run the following command on ngx-persian-pipe folder:
npm install
  1. Run the following command to serve the project:
ng serve

License

MIT © Farhang Darzi

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago