Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).