Skip to content
Roman to Decimal conversion
JavaScript Ruby Shell Cucumber
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
features
hooks
lib
.editorconfig
.envrc
.eslintignore
.eslintrc
.gitignore
.jshintignore
.jshintrc
.jslintrc
.npmignore
.ruby-version
Gemfile
Gruntfile.js
Guardfile-cucumber
Guardfile-lint
README.md
example.js
package.json
tests.txt

README.md

node-roman - Roman to Decimal conversion

roman.js is a Node library for converting Roman numerals into modern decimal numbers.

EXAMPLES

$ node
> var roman = require("./lib/roman");
undefined
> roman.roman2decimal("MDCLXVI");
1666
$ grunt test
Running "exec:test" (exec) task

> roman@0.0.1 test /Users/andrew/Desktop/src/node-roman
> node example.js < tests.txt

3290
1907
2447
2984
1096
1904
2502
1000
2579
3088
2799
2506
3757
3283
1440
2500
651
0

Done, without errors.

See example.js and tests.txt for more information.

HOMEPAGE

https://github.com/mcandre/node-roman

NPM

https://www.npmjs.com/package/roman

REQUIREMENTS

Optional

DEVELOPMENT

Test

Ensure the example script works as expected:

$ cucumber
Feature: Run example tests

  Scenario: Running example tests            # features/run_example_tests.feature:3
    Given the program has finished           # features/step_definitions/steps.rb:1
    Then the output is correct for each test # features/step_definitions/steps.rb:5

1 scenario (1 passed)
2 steps (2 passed)
0m0.320s

Lint

Keep the code tidy:

$ grunt lint

Spell Check

$ grunt aspelllint

Local CI

Guard can automatically run testing when the code changes:

$ bundle
$ guard -G Guardfile-cucumber
...

Guard can automatically lint when the code changes:

$ bundle
$ guard -G Guardfile-lint
...

Git Hooks

See hooks/.

Something went wrong with that request. Please try again.