https://github.com/jonschlinkert/deromanize
Convert roman numerals to arabic numbers (useful for books, outlines, documentation, slide decks, etc)
https://github.com/jonschlinkert/deromanize
number numeral roman roman-numerals
Last synced: 4 months ago
JSON representation
Convert roman numerals to arabic numbers (useful for books, outlines, documentation, slide decks, etc)
- Host: GitHub
- URL: https://github.com/jonschlinkert/deromanize
- Owner: jonschlinkert
- License: mit
- Created: 2014-09-10T09:24:28.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-23T05:39:22.000Z (over 8 years ago)
- Last Synced: 2025-05-07T18:06:21.994Z (5 months ago)
- Topics: number, numeral, roman, roman-numerals
- Language: JavaScript
- Size: 26.4 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deromanize [](https://www.npmjs.com/package/deromanize) [](https://npmjs.org/package/deromanize) [](https://npmjs.org/package/deromanize) [](https://travis-ci.org/jonschlinkert/deromanize)
> Convert roman numerals to arabic numbers (useful for books, outlines, documentation, slide decks, etc)
## Install
Install with [npm](https://www.npmjs.com/):
```sh
$ npm install --save deromanize
```Install with [yarn](https://yarnpkg.com):
```sh
$ yarn add deromanize
```## Usage
```js
var deromanize = require('deromanize');
console.log(deromanize('LVIII'));
//=> 58
```## Attribution
Inspired by this [blog post](http://blog.stevenlevithan.com/archives/javascript-roman-numeral-converter) by [Steven Levithan](https://github.com/slevithan).
## About
### Related projects
* [repeat-string](https://www.npmjs.com/package/repeat-string): Repeat the given string n times. Fastest implementation for repeating a string. | [homepage](https://github.com/jonschlinkert/repeat-string "Repeat the given string n times. Fastest implementation for repeating a string.")
* [romanize](https://www.npmjs.com/package/romanize): Convert arabic numbers to roman numerals (useful for books, outlines, documentation, slide decks, etc) | [homepage](https://github.com/jonschlinkert/romanize "Convert arabic numbers to roman numerals (useful for books, outlines, documentation, slide decks, etc)")
* [to-regex-range](https://www.npmjs.com/package/to-regex-range): Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than… [more](https://github.com/jonschlinkert/to-regex-range) | [homepage](https://github.com/jonschlinkert/to-regex-range "Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.87 million test assertions.")### Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
### Building docs
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
To generate the readme, run the following command:
```sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```### Running tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
```sh
$ npm install && npm test
```### Author
**Jon Schlinkert**
* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)### License
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).***
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 23, 2017._