npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

dec-to-rom

1.0.0 • Public • Published

dec-to-rom Build Status

Converts decimal to Roman numerals between 1 - 100000

Install

$ npm install dec-to-rom

Usage

const decToRom = require('dec-to-rom');
 
decToRom(123);
// returns 'CXXIII'
decToRom(567);
// returns 'DLXVII'
decToRom(3099);
// returns 'MMMXCIX'
decToRom(1219);
// returns 'MCCXIX'
decToRom(40215);
// returns 'MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMCCXV'

License

MIT © Damian Polak

install

npm i dec-to-rom

Downloadsweekly downloads

1

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability