2.0.15 • Published 8 months ago

romans v2.0.15

Weekly downloads
11
License
MIT
Repository
github
Last release
8 months ago

A no-dependency library for converting from decimal notation to roman 🏛 numerals and back again.

quality tests

ko-fi

Install

With npm, pnpm, or yarn installed, run:

$ yarn add romans

Usage

const romans = require('romans');
romans.romanize(454)
// returns: 'CDLIV'

romans.deromanize('CDLIV')
// returns: 454

romans.allNumerals
// array containing the numeric equivalents of the roman characters
// [ 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1 ]

romans.allChars
// array containing all roman numeral characters
// [ 'M', 'CM', 'D', 'CD', 'C', 'XC', 'L', 'XL', 'X', 'IX', 'V', 'IV', 'I' ]

Testing

coverage Wallaby.js

Test coverage is reported via codecov, and run on every release

$ yarn test

License

FOSSA Status

MIT

Contributions

If you'd like to contribute to this library, please send a PR or file a new issue. I aim to get PRs accepted in short order should they align with the goals. Also, be nice.

2.0.15

8 months ago

2.0.9

8 months ago

2.0.8

2 years ago

2.0.5

2 years ago

2.0.7

2 years ago

2.0.4

2 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.4

3 years ago

1.0.2

5 years ago

1.0.0

8 years ago