🌜
🌞
css-unit-sort

css-unit-sort

v4.0.1

Sort css values no matter the unit

npm install css-unit-sort

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

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

Release Notes

4.0.0
By John Otander • Published on December 8, 2020

Dancing cat with rad glasses

Custom properties now have solid browser support and are being used more frequently on the web. So we've added custom properties support via the postcss-custom-properties plugin.

This is part of a 4.0 (major) release because it's technically breaking, but it will now behave the way most users expect.

Changelog

  • (#308) Custom property support
  • (#306) Removes the request library and replaces with node-fetch

General

License
MIT
Typescript Types
None found
Tree-shakeable
No

Popularity

GitHub Stargazers
2,773
Community Interest
2,987
Number of Forks
214

Maintenance

Commits
11/2110/2203
Last Commit
Open Issues
62
Closed Issues
165
Open Pull Requests
7
Closed Pull Requests
49

Versions

Versions Released
11/2110/2201
Latest Version Released
Feb 24, 2021
Current Tags
latest4.0.1

Dependencies

Dependencies (0)
Dev Dependencies (0)

Contributors

mrmrs
mrmrs
Commits: 156
johno
johno
Commits: 155
jxnblk
jxnblk
Commits: 78
aputinski
aputinski
Commits: 27
lachlanjc
lachlanjc
Commits: 13
kevinwuhoo
kevinwuhoo
Commits: 11
shawnbot
shawnbot
Commits: 5
johman10
johman10
Commits: 4
hoffi
hoffi
Commits: 3
sanderteirlynck
sanderteirlynck
Commits: 3
scott113341
scott113341
Commits: 3
brntbeer
brntbeer
Commits: 2
lowmess
lowmess
Commits: 1
outsideris
outsideris
Commits: 1
epalmans
epalmans
Commits: 1