Socket
Book a DemoInstallSign in
Socket

rework-suffix

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rework-suffix

Rework plugin adds a suffix to all declarations e.g. !important.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Build Status

rework-suffix

visionmedia/rework plugin for adding suffixes to CSS declarations, e.g. !important.

Example

input.css

body {
  color: red;
}

rework.js


var reworkSuffix = require('rework-suffix') 

var important = reworkSuffix.suffix(' !important');
// Could also just do:
//   var important = require('rework-suffix')
// This is the default.

var css = rework(read('input.css', 'utf8'))
  .use(important)
  .toString()

write('output.css', css)

output.css

body {
  color: red !important;
}

Keywords

rework

FAQs

Package last updated on 07 Dec 2013

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