Socket
Socket
Sign inDemoInstall

css-declaration-sorter

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-declaration-sorter - npm Package Compare versions

Comparing version 5.1.2 to 6.0.0

src/main.js

1

changelog.md

@@ -67,2 +67,3 @@ # Changelog

[5.1.2]: https://github.com/Siilwyn/css-declaration-sorter/compare/v5.1.1...v5.1.2
[5.1.1]: https://github.com/Siilwyn/css-declaration-sorter/compare/v5.1.0...v5.1.1

@@ -69,0 +70,0 @@ [5.1.0]: https://github.com/Siilwyn/css-declaration-sorter/compare/v5.0.0...v5.1.0

29

license.md

@@ -1,20 +0,15 @@

The MIT License (MIT)
ISC License
Copyright 2016 Selwyn <talk@selwyn.cc>
Copyright (c)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

@@ -118,2 +118,3 @@ [

"font",
"font-display",
"font-family",

@@ -238,2 +239,3 @@ "font-feature-settings",

"rotate",
"row-gap",
"ruby-align",

@@ -249,2 +251,3 @@ "ruby-position",

"shape-outside",
"src",
"tab-size",

@@ -251,0 +254,0 @@ "table-layout",

@@ -63,2 +63,3 @@ [

"column-width",
"row-gap",
"break-before",

@@ -238,2 +239,3 @@ "break-after",

"font-family",
"src",
"font-feature-settings",

@@ -256,2 +258,3 @@ "font-kerning",

"font-weight",
"font-display",
"hyphens",

@@ -258,0 +261,0 @@ "initial-letter",

@@ -94,2 +94,3 @@ [

"column-width",
"row-gap",
"object-fit",

@@ -182,2 +183,3 @@ "object-position",

"font-family",
"src",
"font-feature-settings",

@@ -200,2 +202,3 @@ "font-kerning",

"font-weight",
"font-display",
"hyphens",

@@ -202,0 +205,0 @@ "initial-letter",

{
"name": "css-declaration-sorter",
"version": "5.1.2",
"version": "6.0.0",
"description": "Sorts CSS declarations fast and automatically in a certain order.",
"main": "src/index.js",
"main": "src/main.js",
"files": [
"src/index.js",
"src/main.js",
"src/shorthand-data.js",

@@ -20,3 +20,2 @@ "orders"

"dependencies": {
"postcss": "^7.0.26",
"timsort": "^0.3.0"

@@ -26,5 +25,9 @@ },

"benchmark": "^2.1.4",
"eslint": "^6.8.0",
"tape": "^4.13.0"
"eslint": "^7.10.0",
"postcss": "^8.1.1",
"tape": "^5.0.1"
},
"peerDependencies": {
"postcss": "^8.0.9"
},
"engines": {

@@ -38,3 +41,3 @@ "node": ">= 10"

"author": "Selwyn <talk@selwyn.cc> (https://selwyn.cc/)",
"license": "MIT",
"license": "ISC",
"keywords": [

@@ -41,0 +44,0 @@ "postcss",

@@ -44,3 +44,3 @@ <img alt='CSS declaration sorter logo' src='https://raw.githubusercontent.com/Siilwyn/css-declaration-sorter/master/logo.svg?sanitize=true' height='260' align='right'>

- [SMACSS](https://smacss.com/book/formatting#grouping)
- [SMACSS](http://smacss.com/book/formatting#grouping)
`smacss`

@@ -64,3 +64,4 @@ *Order from most important, flow affecting properties, to least important properties.*

## Usage
`npm install css-declaration-sorter --save-dev`
Following the PostCSS plugin guidelines, this package depends on PostCSS as a peer dependency:
`npm install postcss css-declaration-sorter --save-dev`

@@ -76,2 +77,18 @@ ### CLI

Sorting all files in a directory with SCSS syntax using [postcss-scss](https://github.com/postcss/postcss-scss) by overwriting:
`postcss ./src/**/*.scss --syntax postcss-scss --use css-declaration-sorter --replace --no-map`
Sorting all files in the directory with SCSS syntax and SMACSS order by overwriting, using `package.json` configuration:
```json
"postcss": {
"syntax": "postcss-scss",
"map": false,
"plugins": {
"css-declaration-sorter": { "order": "smacss" }
}
}
```
`postcss ./src/**/*.scss --replace --config package.json`
### Vanilla JS

@@ -121,4 +138,4 @@ ```js

[travis]: https://travis-ci.org/Siilwyn/css-declaration-sorter
[travis-icon]: https://img.shields.io/travis/Siilwyn/css-declaration-sorter/master.svg?style=flat-square
[travis]: https://travis-ci.com/Siilwyn/css-declaration-sorter
[travis-icon]: https://img.shields.io/travis/com/Siilwyn/css-declaration-sorter/master.svg?style=flat-square
[lgtm]: https://lgtm.com/projects/g/Siilwyn/css-declaration-sorter/

@@ -125,0 +142,0 @@ [lgtm-icon]: https://img.shields.io/lgtm/grade/javascript/g/Siilwyn/css-declaration-sorter.svg?style=flat-square

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc