{"id":15487010,"url":"https://github.com/jogboms/ngx-numeral","last_synced_at":"2025-04-22T16:49:01.345Z","repository":{"id":27391977,"uuid":"113730728","full_name":"jogboms/ngx-numeral","owner":"jogboms","description":"An Angular pipe module for interfacing the Awesome Numeraljs library.","archived":false,"fork":false,"pushed_at":"2022-01-22T11:43:08.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T23:33:09.189Z","etag":null,"topics":["angular","ngx-numeral","numbers","numeraljs","pipe"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jogboms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-10T07:11:03.000Z","updated_at":"2022-01-22T11:43:11.000Z","dependencies_parsed_at":"2022-08-07T12:16:31.146Z","dependency_job_id":null,"html_url":"https://github.com/jogboms/ngx-numeral","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogboms%2Fngx-numeral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogboms%2Fngx-numeral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogboms%2Fngx-numeral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jogboms%2Fngx-numeral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jogboms","download_url":"https://codeload.github.com/jogboms/ngx-numeral/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250281894,"owners_count":21404879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","ngx-numeral","numbers","numeraljs","pipe"],"created_at":"2024-10-02T06:20:47.947Z","updated_at":"2025-04-22T16:49:01.324Z","avatar_url":"https://github.com/jogboms.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngx-numeral\n[![npm version](https://badge.fury.io/js/ngx-numeral.svg)](https://badge.fury.io/js/ngx-numeral)\n[![npm](https://img.shields.io/npm/dt/ngx-numeral.svg?label=npm%20downloads)](https://www.npmjs.com/package/ngx-numeral)\n[![Build Status](https://travis-ci.org/jogboms/ngx-numeral.svg?branch=master)](https://travis-ci.org/jogboms/ngx-numeral)\n[![Coverage Status](https://coveralls.io/repos/github/jogboms/ngx-numeral/badge.svg?branch=master\u0026cacheBuster=1)](https://coveralls.io/github/jogboms/ngx-numeral?branch=master)\n\nAn Angular pipe module for interfacing the Awesome [Numeraljs](http://numeraljs.com/) library.\n\n## Installation\n\n ```bash\n npm i -S ngx-numeral\n ```\n\n## Usage\n\nAdd `NumeralModule` to your application module.\n\n ```ts\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    NumeralModule.forRoot()\n    // ...\n  ],\n  bootstrap: [AppComponent]\n})\n\nexport class AppModule { }\n```\n\nUse Pipe within your template file\n\n``` html\n\u003ch1\u003e{{ '12345.123' | numeral:'$0,0.00' }}\u003c/h1\u003e\n```\n\nOr instatiate `NumeralPipe` in your components with the desired value.\n\n```ts\nimport { NumeralPipe } from 'ngx-numeral';\n\nclass ExampleComponent implements OnInit {\n  formatted_string: string;\n\n  ngOnInit() {\n    const numeral = new NumeralPipe('7784.374');\n    this.formatted_string = numeral.format('$0,0.00');\n  }\n}\n```\n\nA demo application is also included.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjogboms%2Fngx-numeral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjogboms%2Fngx-numeral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjogboms%2Fngx-numeral/lists"}