bredon-plugin-trim-hex

1.0.0 • Public • Published

bredon-plugin-trim-hex

npm version npm downloads

The trim-hex plugin will minify hex color values if possible.

Installation

yarn add bredon-plugin-trim-hex

You may alternatively use npm i --save bredon-plugin-trim-hex.

Usage

import { compile } from 'bredon'
import trimHexPlugin from 'bredon-plugin-trim-hex'
 
const input = '#FFFFFF #FAFAFA'
 
const output = compile(input, {
  plugins: [ 
    trimHexPlugin()
  ]
})
 
console.log(output)
// => #FFF #FAFAFA

License

Bredon is licensed under the MIT License.
Documentation is licensed under Creative Common License.
Created with ♥ by @rofrischmann and all the great contributors.

Package Sidebar

Install

npm i bredon-plugin-trim-hex

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rofrischmann