{"name":"insert-css","version":"0.1.1","description":"insert a string of css into the <head>","main":"index.js","dependencies":{},"devDependencies":{"tape":"~2.4.0","computed-style":"~0.1.3"},"repository":{"type":"git","url":"git://github.com/substack/insert-css.git"},"testling":{"files":"test/*.js","browsers":["ie/6..latest","chrome/20..latest","firefox/10..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6"]},"homepage":"https://github.com/substack/insert-css","keywords":["css","insert","dom","browser","browserify"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","bugs":{"url":"https://github.com/substack/insert-css/issues"},"_id":"insert-css@0.1.1","dist":{"shasum":"01cc43ae79775b01437e7a9a80da42997aa24de1","tarball":"http://registry-npm.ywwl.com/insert-css/download/insert-css-0.1.1.tgz","integrity":"sha512-ZnLszBNhvevvUiDHiX7kqZ5+/zZMhWfpoeRCAUUCRHMzjqxC52X1HoWWtuXR98LptoncmlHAwhmycNxsSSD5Ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiqxlZFHAuJ+QClEAVGjxdMB4VK/ZZFoibmFsRvKHDSQIgUNrp2sho9h3q1nqoTzWPnVRmGAd9vPq0vq7g0AzVxIw="}],"size":2781,"noattachment":false,"key":"/insert-css/-/insert-css-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"directories":{},"readme":"# insert-css\n\ninsert a string of css into the `<head>`\n\n[![browser support](https://ci.testling.com/substack/insert-css.png)](https://ci.testling.com/substack/insert-css)\n\n# example\n\n``` js\n    var insertCss = require('insert-css');\n    var styleElement = insertCss('body { background:blue; }');\n```\n\n# api\n\n``` js\n    var insertCss = require('insert-css');\n```\n\n## var styleElement = insertCss(css, opts);\n\nInsert some CSS into the page.\n\n* `opts.container` - Which HTMLElement to use as the base mounting point, defaults to\n`document.querySelector('head')`.\n\n* `opts.prepend` - Add the CSS at the top level of the container instead of at the bottom level (default).\n\nThis is particullary useful for library creators where you may want your default CSS to be prepended so it\ncan be easily overriden by user styles.\n\n# development\n\n## example\n\n``` sh\nnpm run example\n```\n\n## test\n\n``` sh\nnpm test\n```\n","publish_time":1391051289528,"_cnpm_publish_time":1391051289528,"dist-tags":{"latest":"2.0.0"}}