# for NPM
npm install devnagri-numerals
# for Yarn
yarn add devnagri-numerals
# for Bower
bower add devnagri-numerals
- Parameters:
arabicNumeral
should be of typenumber
- Returns:
string
- Parameters:
devnagriString
should be of typestring
- Returns:
number
- Import it
const devnagriConvertor = require('devnagri-numerals');
Or for Babel Node
import * as devnagriConvertor from "devnagri-numerals";
- Convert Arabic to Devnagri
var devnagri_nums = devnagriConvertor.toDevnagriNumeral(232);
- Convert Devnagri to Arabic
var arabic_nums = devnagriConvertor.toArabicNumeral('१३७८४');
npm install
npm run test