You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

jss-props-sort

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-props-sort

JSS plugin that ensures style properties extend each other instead of override

6.0.0
latest
Source
npmnpm
Version published
Weekly downloads
139K
19.99%
Maintainers
1
Weekly downloads
 
Created
Source

JSS plugin that ensures style properties extend each other instead of override

Gitter

Inspired by React Native. When using this plugin, more specific properties will not be overwritten by less specific.

Usage example

const styles = {
  container: {
    'border-left': '1px solid red',
    border: '3px solid green'
  }
})

Compiles to:

.jss-jkh4234 {
  border: 3px solid green;
  border-left: 1px solid red;
}

Demo

Simple

Run tests

npm i
npm run test

License

MIT

Keywords

cssinjs

FAQs

Package last updated on 30 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts