https://github.com/juliuste/ral-to-hex
Convert RAL colour codes to HEX codes.
https://github.com/juliuste/ral-to-hex
library
Last synced: about 1 year ago
JSON representation
Convert RAL colour codes to HEX codes.
- Host: GitHub
- URL: https://github.com/juliuste/ral-to-hex
- Owner: juliuste
- License: mit
- Created: 2017-04-03T18:44:10.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2022-05-26T16:17:37.000Z (about 4 years ago)
- Last Synced: 2024-10-17T03:11:58.143Z (over 1 year ago)
- Topics: library
- Language: JavaScript
- Size: 3.91 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# ral-to-hex
Convert RAL colour codes to HEX codes. Data taken from [this gist](https://gist.github.com/lunohodov/1995178).
[](https://www.npmjs.com/package/ral-to-hex)
[](https://travis-ci.org/juliuste/ral-to-hex)
[](https://greenkeeper.io/)
[](https://david-dm.org/juliuste/ral-to-hex)
[](https://david-dm.org/juliuste/ral-to-hex#info=devDependencies)
[](LICENSE)
[](https://gitter.im/juliuste)
## Installation
```bash
npm install --save ral-to-hex
```
## Usage
```js
const hex = require('ral-to-hex')
let colour1 = hex(5025) // '#2A6478' (RAL 5025)
let colour2 = hex(2013) // '#C35831' (RAL 2013)
```
## Contributing
If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit [the issues page](https://github.com/juliuste/ral-to-hex/issues).