You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A no-dependency library for converting from decimal notation to roman 🏛 numerals and back again.
3
+
Transform ⚡ numbers into Roman numerals (and back again) with no dependencies. Perfect for when X, V, and I are more your style than 1, 2, 3. As [battle-tested](https://app.codecov.io/gh/qbunt/romans) as a gladiator ⚔️ 🏛️
With [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), [pnpm](https://pnpm.io/), or [yarn](https://yarnpkg.com/) installed, run:
If you'd like to contribute to this library, please [send a PR](https://github.com/qbunt/romans/pulls) or [file a new issue](https://github.com/qbunt/romans/issues). I aim to get PRs accepted in short order *should they align with the goals*. Also, be nice.
52
+
Open source license obligations are tracked via FOSSA scans.
_Note: The license obligation check says there are dependencies, they are purely used for dev tests, the core library has no direct dependencies 💪_
57
+
58
+
## Security 🔒
59
+
60
+
I take supply chain security **seriously** and run [socket.dev scans](https://socket.dev/npm/package/romans/overview/) on all PRs and releases. Although there are no dependencies on the library, I value your trust. If you see something, say something.
61
+
62
+
## FAQ 🤔
63
+
64
+
> What, why?
65
+
66
+
It started as a joke and became an interesting diversion, there are now more tests than library and it has a mind of it's own. Doing this was an interesting coding challenge problem that isn't the easiest to solve, and really, the Superbowl will have to use it eventually 🙃. Also, love a silly thing.
67
+
68
+
> Why is there no `0`?
69
+
70
+
Roman numerals [didn't include 0](https://en.wikipedia.org/wiki/Roman_numerals#Zero), so it's not included here. Yes, it's pedantry. No, I'm not adding it.
71
+
72
+
> I don't get it, why is this not an ESM module?
73
+
74
+
On the fence here, but mainly to support in older codebases that are CommonJS based. I value not having a compile step.
75
+
76
+
> Why didn't you build this in Typescript?
77
+
78
+
I value not having to set up typescript, and really, I do enjoy the simplicity of having a single library file. There are types and extensive JSDoc comments. Eventually, I'll cave and do multiple builds, but for now, this is fine. If you feel strongly about this decision, pull requests are open.
79
+
80
+
> What's new in v3?
81
+
82
+
Same great taste, API is 💯 identical, more tests, improved efficiency, improved types, **vastly** improved docs ⚔️
83
+
84
+
## Contributions 🤝
85
+
86
+
If you'd like to contribute to this library, please [send a PR](https://github.com/qbunt/romans/pulls) or [file a new issue](https://github.com/qbunt/romans/issues). I aim to get PRs accepted in short order *should they align with the goals*. Also, be kind, again, this started as a joke.
0 commit comments