1.0.0 • Published 9 years ago
p-format-hex v1.0.0
p-format-hex
Format an hex color code into its standard format (#abc -> #aabbcc), promisified
Table of contents
Installation
$ npm install --save p-format-hexOr if you prefer yarn:
$ yarn add p-format-hexUsage
const format_hex = require('p-format-hex');
format_hex('#abc')
.then(hex => console.log(hex)) // '#aabbcc'
.catch(err => console.error(err));Development
$ npm testChangelog
- 1.0.0
- Initial Release
1.0.0
9 years ago