0.0.8 • Published 7 months ago

@j-dotjs/color-code-converter v0.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

Github Package npm package

color-code-converter

Converts to the specified color code between different color codes

Table of Contents

Installation

npm i @j-dotjs/color-code-converter OR npm install @j-dotjs/color-code-converter@X.X.X

Initialization

const colorConverter = require('@j-dotjs/color-code-converter');

Usage

Get Hex Code from Color Name

colorConverter.getHexStr('red'); // #ff0000
colorConverter.getHexStr('blue'); // #0000ff
colorConverter.getHexStr('green'); // #00ff00

etc...

Get Hex Code from RGB

colorConverter.getHexRGB(255, 0, 0); // #ff0000
colorConverter.getHexRGB(0, 0, 255); // #0000ff
colorConverter.getHexRGB(0, 255, 0); // #00ff00

etc...

Planned Features

  • Generate rgb from string
  • Generate hex from rgb
  • Generate rgb from hex

License

MIT

Author

J-dotJS

Disclaimer

Some colors may not be supported. You can suggest colors to be added by creating an issue or forking the repository and creating a pull request. This package is still in development and may not work as intended. Please report any bugs or issues to the issues page.

0.0.8

7 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago