Skip to content
This repository was archived by the owner on Apr 21, 2020. It is now read-only.
/ p-format-hex Public archive

Format an hex color code into its standard format (#abc -> #ffffff), promisified

Notifications You must be signed in to change notification settings

sydev/p-format-hex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p-format-hex

Format an hex color code into its standard format (#abc -> #aabbcc), promisified

Table of contents

Installation

$ npm install --save p-format-hex

Or if you prefer yarn:

$ yarn add p-format-hex

Usage

const format_hex = require('p-format-hex');

format_hex('#abc')
  .then(hex => console.log(hex)) // '#aabbcc'
  .catch(err => console.error(err));

Development

$ npm test

Changelog

  • 1.0.0
    • Initial Release

About

Format an hex color code into its standard format (#abc -> #ffffff), promisified

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published