1.1.2 • Published 6 months ago
ngx-convert-number-indian v1.1.2
ngx-convert-number-indian
Convert numbers to Indian language words. Supports both Node, React and Angular applications.
Installation
npm install ngx-convert-number-indian
Usage
Plain JavaScript/TypeScript
import { convert } from 'ngx-convert-number-indian';
console.log(convert(123,'en')); // "one hundred and twenty-three"
React Component
import { convert } from 'ngx-convert-number-indian';
function MyComponent() {
return (
<div>
<convert number={123,'en'} /> // "one hundred and twenty-three"
</div>
);
}
Angular Pipe
import { convert } from 'ngx-convert-number-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