css-unit-sort

4.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i css-unit-sort

Weekly Downloads

137

Version

4.0.1

License

MIT

Unpacked Size

3.41 kB

Total Files

4

Last publish

Collaborators

  • johno