{"id":28850192,"url":"https://github.com/nnitish/ng-nft","last_synced_at":"2026-05-02T05:03:49.000Z","repository":{"id":102758109,"uuid":"178201190","full_name":"nnitish/ng-nft","owner":"nnitish","description":"Number Formatter for Angular. Transforms the number into human readable format when in Thousands, Millions and Billions.","archived":false,"fork":false,"pushed_at":"2019-03-29T01:44:08.000Z","size":122,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-27T22:03:13.017Z","etag":null,"topics":["angular","angular2","angular4","angular5","angular6","angular7","format","formats","formatter","formatting","number","number-format"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nnitish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-28T12:41:38.000Z","updated_at":"2019-03-29T01:44:09.000Z","dependencies_parsed_at":"2023-05-22T17:45:30.894Z","dependency_job_id":null,"html_url":"https://github.com/nnitish/ng-nft","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/nnitish%2Fng-nft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnitish%2Fng-nft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnitish%2Fng-nft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnitish%2Fng-nft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nnitish","download_url":"https://codeload.github.com/nnitish/ng-nft/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnitish%2Fng-nft/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258632390,"owners_count":22732952,"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","angular2","angular4","angular5","angular6","angular7","format","formats","formatter","formatting","number","number-format"],"created_at":"2025-06-19T21:01:39.996Z","updated_at":"2026-05-02T05:03:48.988Z","avatar_url":"https://github.com/nnitish.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n\nNumber Formatter for [Angular](http://angular.io); Transforms the number into human readable format when in Thousands, Millions and Billions. It accept the negative number also.\n* 12345 -\u003e 12.345K\n* -12345 -\u003e -12.345K (Negative number)\n* 1234567 -\u003e 1.23M\n* 123456789123 -\u003e 123.45B\n\nThe number of digits after the decimal point depends on the input value of `[nftPlaceValue]=\"\"` Range [0-100].\nIt also watch for every input `[nftNumber]=\"12453\"` value changes.\n\n# Installation\n\n### npm\n```js\nnpm install ng-nft --save\n```\n\n# Usage\n\n### Import `NgNftModule`\n\nYou need to import the `NgNftModule` in the module of your app where you want to use it.\n\n```js\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\n\nimport { AppComponent } from './app.component';\nimport { NgNftModule } from 'ng-nft';\n\n@NgModule({\n  declarations: [\n    // Your components\n  ],\n  imports: [\n    // Your modules,\n    NgNftModule\n  ],\n  providers: [],\n  bootstrap: []\n})\nexport class AppModule { }\n```\n\n### selector\n1. Place the `\u003cng-nft\u003e\u003c/ng-nft\u003e` selector and pass the un-formatted number as an input to `[nftNumber]=\"\"`. It watch for every input value changes in real time.\n\n```html\n\u003cng-nft [nftNumber]=\"12345\"\u003e\u003c/ng-nft\u003e\n\n\u003cng-nft [nftNumber]=\"'12345'\"\u003e\u003c/ng-nft\u003e  (Accept number as a string format)\n```\n\n\n2. Use the input `[nftPlaceValue]=\"\"` to fix the digit after decimal point\n\n```js\n[nftPlaceValue]=\"\" // Optional. The number of digits after the decimal point. Range [0-100]\n```\n```html\n\u003cng-nft [nftNumber]=\"12345\" [nftPlaceValue]=\"\"\u003e\u003c/ng-nft\u003e\n\u003cng-nft [nftNumber]=\"12345\" [nftPlaceValue]=\"0\"\u003e\u003c/ng-nft\u003e\n\n...\n\n\u003cng-nft [nftNumber]=\"12345\"\u003e\u003c/ng-nft\u003e\n\u003cng-nft [nftNumber]=\"12345\" [nftPlaceValue]=\"2\"\u003e\u003c/ng-nft\u003e\n\u003cng-nft [nftNumber]=\"-12345\" [nftPlaceValue]=\"2\"\u003e\u003c/ng-nft\u003e (Accept negative number)\n\u003cng-nft [nftNumber]=\"'-12345'\" [nftPlaceValue]=\"2\"\u003e\u003c/ng-nft\u003e (Accept number as a string format)\n\n...\n```\n\n\n# Demo App\n\nThis project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.1.1. \nThus, one can consume the Demo App with in the Repository and can understand the flow of how this Package works.\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\n\n## Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnitish%2Fng-nft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnnitish%2Fng-nft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnitish%2Fng-nft/lists"}