ipersian-pipe
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

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

Package Sidebar

Install

npm i ipersian-pipe

Weekly Downloads

0

Version

0.1.7

License

MIT

Unpacked Size

134 kB

Total Files

20

Last publish

Collaborators

  • imanit2