1.1.3 • Published 6 months ago

ngx-number-converter-indian v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

ngx-number-converter-indian

Convert numbers to Indian language words. Supports both Node, React and Angular applications.

Installation

npm install ngx-number-converter-indian

Usage

Plain JavaScript/TypeScript

import { convert } from 'ngx-number-converter-indian';

console.log(convert(123,'en')); // "one hundred and twenty-three"

React Component

import { convert } from 'ngx-number-converter-indian';

function MyComponent() {
  return (
    <div>
      <convert number={123,'en'} /> // "one hundred and twenty-three"
    </div>
  );
}

Angular Pipe

import { convert } from 'ngx-number-converter-indian';

@Component({
  standalone: true,
  imports: [convert],
  template: ``
})
export class MyComponent {

    console.log(convert(123,'en')); // "one hundred and twenty-three"

}

Developed By

  • Developed by Amit Katiyar aka Amit Bharat

Features

  • Converts numbers from 0 to 999,999,999,999
  • Supports React components
  • Supports Angular
  • TypeScript support
  • Zero dependencies
  • Fully tested

License

MIT