get_nepali_number 1.0.0+2
get_nepali_number: ^1.0.0+2 copied to clipboard

Flutter Android iOS web

Convert any english numeral to Nepali number [eg abc200.05 => abc२००.०५ ]

get_nepali_number #

A lightweight package to convert any English numeral to Nepali number [eg: 'Rs. 200.05' => 'Rs. २००.०५' ].

How to install #

dependencies:
  get_nepali_number: 1.0.0+1

Usage #


import 'package:get_nepali_number/get_nepali_number.dart';

getNepaliNumber(100);
//=> '१००'

getNepaliNumber(2000);
//=> '२०००'

getNepaliNumber(200.05);
//=> '२००.०५'

getNepaliNumber(2000.50);
//=> '२०००.५०'

getNepaliNumberFromText('2,00,000.50');
//=> '२,००,०००.५०'

getNepaliNumberFromText('Rs. 1,000,365.50');
//=> 'Rs. १,०००,३६५.५०'

This package is designed to be only used to work with Nepali numbers.

If you have any suggestions, improvements, I am open to PR. If you find any bug/issue, please don't hesitate to open an issue.

2
likes
100
pub points
15%
popularity

Convert any english numeral to Nepali number [eg abc200.05 => abc२००.०५ ]

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

idsanjay81@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on get_nepali_number