hex-color-resolve

1.0.0 • Public • Published

Hex Color Resolve Build Status

Resolve hex colors shorthand.

Install

npm install --save hex-color-resolve

Usage

const hexColorResolve = require('hex-color-resolve');

hexColorResolve('#ff0');
//=> #ffff00

hexColorResolve('#ffff00');
//=> #ff0

hexColorResolve('#c2c2c2')
//=> Error

API

hexColorResolve(input)

Returns a new color, shorted or long.

input

Type: string

Test

npm test

License

MIT © Filipe LInhares

Readme

Keywords

Package Sidebar

Install

npm i hex-color-resolve

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • filipelinhares