css-unit-sort
v4.0.1
Published
Sort css values no matter the unit
Downloads
259
Readme
css-unit-sort
Sort css values no matter the unit. Originally written by @jxnblk.
Installation
npm i -S css-unit-sort
Usage
const cssUnitSort = require('css-unit-sort')
cssUnitSort(['2rem', 'inherit', 'small', '12px', '20px', '60px', '1.5em']) // => ['60px', '2rem', '1.5em', '20px', 'inherit', 'small', '12px']
License
MIT
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander (@4lpine).