4.0.1 • Published 3 years ago

css-unit-sort v4.0.1

Weekly downloads
394
License
MIT
Repository
github
Last release
3 years ago

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).

4.0.1

3 years ago

4.0.0

3 years ago

3.5.0

3 years ago

3.3.1

5 years ago

3.3.0

5 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago