string-to-rgba-to-string

1.0.0 • Public • Published

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

npm

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i string-to-rgba-to-string

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.54 kB

Total Files

5

Last publish

Collaborators

  • carlodev15