cssobj-plugin-gencss
Generate css text from cssobj-core.
Usage
var cssobj_core =var pluginGenCSS =var cssobj =var result =// result.css will have the css text generated
Install
npm install cssobj/cssobj-plugin-gencss
API
var plugin = pluginGenCSS(option)
Get plugin function to apply, pass option.
PARAMS
option
-
indent
: {string} Indent string for each level when format css, default is ' ' (2 space). -
newLine
: {string} New-line string. default is '\n'. -
initIndent
: {string} Init indent for all lines. default is ''.
RETURN
A function can be as cssobj plugin.
Example
// all lines will have \t infront//all lines will join together
Helpers
This plugin can use with plugin-stylize to apply generated css text into <style>
tag.