npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

rework-suffix

0.0.3

@timoxley

npmHomeRepoSnykSocket
Downloads:8
$ npm install rework-suffix
DailyWeeklyMonthlyYearly

rework-suffix

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

Example

/* input.css */
body {
  color: red;
}
/* rework.js */
...

var important = require('rework-suffix') 
// uses !important suffix by default

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

write('output.css', css)
...

/* output.css */
body {
  color: red !important;
}