README
shorten-hex-color
Shorten a 6-digit HEX code to the closest 3-digit HEX code.
Installation
npm install --save shorten-hex-color
shorten(hex)
const shorten = require('shorten-hex-color')
const shortColor = shorten('#00738a') // '#078'
Contributing
If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.