p-format-hex

1.0.0 • Public • Published

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

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 p-format-hex

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • sydev