Skip to content

reworkcss/rework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rework Build Status

CSS manipulations built on css, allowing you to automate vendor prefixing, create your own properties, inline images, anything you can imagine!

Installation

$ npm install rework

Built with rework

API

rework(css)

Return a new Rework instance for the given string of css.

Rework#use(fn)

Use the given plugin fn. A rework "plugin" is simply a function accepting the stylesheet object and Rework instance.

Rework#toString(options)

Return the string representation of the manipulated css. Optionally you may compress the output with .toString({ compress: true }) and/or generate an inline source map with .toString({ sourcemap: true })

Plugins

External modules:

  • extend — add extend: selector support
  • ease — several additional easing functions
  • at2x — serve high resolution images
  • prefixSelectors — add prefixes to selectors
  • colors — add colour helpers like rgba(#fc0, .5)
  • mixin — add custom property logic with mixing
  • function — Add user-defined CSS functions
  • references — add property references support height: @width etc
  • significant whitespace - nested and indented syntax like Stylus and SASS
  • url - rewrite url()s with a given function
  • variables - W3C-style variables
  • more third-party plugins and utilities

License

(The MIT License)

Copyright (c) 2012 - 2013 TJ Holowaychuk [email protected]

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:

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.

About

Plugin framework for CSS preprocessing in Node.js

Resources

Stars

Watchers

Forks

Packages

No packages published