Package Exports
- shorten-css-hex
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (shorten-css-hex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
shorten-css-hex
Shorten CSS hex codes
Install
npm install --save shorten-css-hexUsage
ES2015
import shortenCssHex from 'shorten-css-hex';
shortenCssHex('#000000');
// => '#000'
shortenCssHex('#AaBBcC');
// => '#abc'
shortencsshex('#112233ff');
// => '#123f'
shortencsshex('#123456');
// => '#123456'
shortencsshex('#123456ff');
// => '#123456ff'ES5
var shortenCssHex = require('shorten-css-hex');
shortenCssHex('#000000');
// => '#000'
shortenCssHex('#AaBBcC');
// => '#abc'
shortencsshex('#112233ff');
// => '#123f'
shortencsshex('#123456');
// => '#123456'
shortencsshex('#123456ff');
// => '#123456ff'LICENSE
MIT © Dustin Specker