string-to-rgba-to-string
v1.0.0
Published
Color string to rgba and rgba to string converter.
Downloads
2
Maintainers
Readme
string-to-rgba-to-string
The code provides a Node.js module that offers functions for bidirectional conversion between hexadecimal color representations and RGBA representations. It includes methods to convert a predefined color name to RGBA and vice versa. Useful for manipulating colors in Node.js applications.
Install
$ npm install string-to-rgba-to-string
Usage
const color = require("./index.js");
console.log(color.convertToRgba('green'));
//=> 'rgba(0, 128, 0, 1)'
console.log(color.convertToString('rgba(255, 0, 0, 1)'));
//=> 'red'
GitHub
- [carlodev15-profile] (https://github.com/CarloDev15)
npm
- [carlodev15-profile] (https://www.npmjs.com/~carlodev15)