0.1.0 • Published 11 years ago

load-css v0.1.0

Weekly downloads
49
License
-
Repository
github
Last release
11 years ago

load-css

Dynamically loads CSS into the document head.

var loadCSS = require('load-css');
var css = [
  'div {'
, ' color: green;'
, '}'
].join('\n')

loadCSS.(css);

Installation

npm install load-css

API

####loadCSS(css)

/**
 * Loads the given css string into the document head as an inlined script.
 * 
 * @name loadCSS
 * @function
 * @param css {String} the css to load
 */

Examples

You can run the examples via the following commands:

  • npm run demo-string demonstrates how to load a css string

License

MIT

0.1.1

11 years ago

0.1.0

11 years ago

0.0.1

11 years ago