arabify
v1.0.2
Published
Convert Roman numerals to their Arabic equivalents.
Downloads
1
Readme
arabify
Convert Roman numerals to their Arabic-Indic equivalents.
Install
$ npm install --save arabify
Usage
ECMAScript 5:
var arabify = require('arabify').default
arabify('MMXVI') // => 2016
arabify('XXXXX') // => Error
ECMAScript 2015+:
import arabify from 'arabify'
arabify('MMXVI') // => 2016
arabify('XXXXX') // => Error
License
MIT © Luís Rodrigues