{"_id":"insert-css","_rev":"40-80d5729310e67388fec641c62ff1ed41","name":"insert-css","description":"insert a string of css into the <head>","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.0":{"name":"insert-css","version":"0.0.0","description":"insert a string of css into the <head>","main":"index.js","dependencies":{},"devDependencies":{"tap":"~0.4.0","tape":"~0.3.0"},"scripts":{"test":"tap test/*.js"},"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","_id":"insert-css@0.0.0","dist":{"shasum":"2304bfa6f893abecb8ff9ca8d9c7605d94cf2911","tarball":"https://registry.npmjs.org/insert-css/-/insert-css-0.0.0.tgz","integrity":"sha512-PwixL1rVtKkM1gz43tEHwZ2sUOYmWB5zk/9YiEmOxERqjfIkkMY4jwrl3v3e9NLzblEdkBuMLiTLm/0sHMx4qA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSU3Kj8q+fZzCEdrahpll6gCRqZg0HikSq/VR8WXIBpgIhAPbw78gePI9Mv/VzC/oTcU06VY8EYQzg0+NLHOBniIKG"}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"directories":{}},"0.1.0":{"name":"insert-css","version":"0.1.0","description":"insert a string of css into the <head>","main":"index.js","dependencies":{},"devDependencies":{"tape":"~2.3.0"},"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.0","dist":{"shasum":"f73e1031eb120a7b2ed834f3ce60fc05a26bb267","tarball":"https://registry.npmjs.org/insert-css/-/insert-css-0.1.0.tgz","integrity":"sha512-nhXUrOVycZ9NJoTIXylTMqWKd/4hpHO0wog/NVpnpqQ6TwUb297jK+2+GIaH5Hd+jYlOZoHV7nZYLnz0V9xjMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjMwBu0v9cmVna64RlPTcwLjHwFJo5f/El4zHwRnLmtAiAzbu/7YQSTKD0u77QjnpxQKVpWkuSfmW62W6N2zT4cxw=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"directories":{}},"0.1.1":{"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":"https://registry.npmjs.org/insert-css/-/insert-css-0.1.1.tgz","integrity":"sha512-ZnLszBNhvevvUiDHiX7kqZ5+/zZMhWfpoeRCAUUCRHMzjqxC52X1HoWWtuXR98LptoncmlHAwhmycNxsSSD5Ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiqxlZFHAuJ+QClEAVGjxdMB4VK/ZZFoibmFsRvKHDSQIgUNrp2sho9h3q1nqoTzWPnVRmGAd9vPq0vq7g0AzVxIw="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"directories":{}},"0.2.0":{"name":"insert-css","version":"0.2.0","description":"insert a string of css into the <head>","main":"index.js","dependencies":{},"devDependencies":{"tape":"^2.13.3","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","gitHead":"acc7f4688a6e4b1ce2d5ebdbedb90e93385f991c","bugs":{"url":"https://github.com/substack/insert-css/issues"},"_id":"insert-css@0.2.0","scripts":{},"_shasum":"d15789971662d9899c28977fb6220d5381d2451a","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}],"dist":{"shasum":"d15789971662d9899c28977fb6220d5381d2451a","tarball":"https://registry.npmjs.org/insert-css/-/insert-css-0.2.0.tgz","integrity":"sha512-tXSEsS2BJfEdtBuKzqfbbOijbWQC+y0i5pGd4OXNBauhWZ5lLNs7nb03tyONVuvwu6RXyQqWwqoRJV3jKR7+ag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDy7+2T+nuVfnZWILAjWJ6VEMgkwGCqQqXHyE64CVXR4AiEAuIoztGyAfQtqS7YNSvjsT32JjX3o6C5LPRGD0WMWgoc="}]},"directories":{}},"1.0.0":{"name":"insert-css","version":"1.0.0","description":"insert a string of css into the <head>","main":"index.js","dependencies":{},"scripts":{"test":"browserify test.js | tape-run","example":"budo example.js"},"devDependencies":{"browserify":"^13.0.1","budo":"^8.3.0","computed-style":"^0.3.0","dom-event":"^1.0.0","tape":"^4.6.0","tape-run":"^2.1.4"},"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","inject","styles","stylesheet","style","html","head","link"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","gitHead":"fe92400e28ef08d761f84bdb82c6f05bf56dd587","bugs":{"url":"https://github.com/substack/insert-css/issues"},"_id":"insert-css@1.0.0","_shasum":"108199fdbb52a54a2aac83cb9def688bc0e00535","_from":".","_npmVersion":"2.15.5","_nodeVersion":"5.11.0","_npmUser":{"name":"vvo","email":"vincent.voyer@gmail.com"},"maintainers":[{"name":"substack","email":"substack@gmail.com"},{"name":"vvo","email":"vincent.voyer@gmail.com"}],"dist":{"shasum":"108199fdbb52a54a2aac83cb9def688bc0e00535","tarball":"https://registry.npmjs.org/insert-css/-/insert-css-1.0.0.tgz","integrity":"sha512-P4tZfJu+2vT8I9F1d9ZPJb7CKZDMOMKwLo4MCqA1SxWzPzzN71+wH+7XwltMmlIW1Eo2J23lk5K5O9P2oFNEbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKYR+dehIh/kX1iVQK2RZJlarBAI1VHt1bdICsUr2AXwIhALlq5idvZjnlM6lDZCLbhrGO0KHoV5nUfSy29FbHAqvk"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/insert-css-1.0.0.tgz_1466971869864_0.36352601111866534"},"directories":{}},"1.1.0":{"name":"insert-css","version":"1.1.0","description":"insert a string of css into the <head>","main":"index.js","dependencies":{},"scripts":{"test":"browserify test.js | tape-run","example":"budo example.js"},"devDependencies":{"browserify":"^13.0.1","budo":"^8.3.0","computed-style":"^0.3.0","dom-event":"^1.0.0","tape":"^4.6.0","tape-run":"^2.1.4"},"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","inject","styles","stylesheet","style","html","head","link"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","gitHead":"e133b278e11354a1c22d30ee8a81fadfc8cceecc","bugs":{"url":"https://github.com/substack/insert-css/issues"},"_id":"insert-css@1.1.0","_shasum":"4a3f7a3e783877381bb8471a6452d1d27315db9e","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"vvo","email":"vincent.voyer@gmail.com"},"maintainers":[{"name":"jonaskello","email":"jonas.kello@gmail.com"},{"name":"substack","email":"substack@gmail.com"},{"name":"vvo","email":"vincent.voyer@gmail.com"}],"dist":{"shasum":"4a3f7a3e783877381bb8471a6452d1d27315db9e","tarball":"https://registry.npmjs.org/insert-css/-/insert-css-1.1.0.tgz","integrity":"sha512-xucg3W/TAfj6EE/tgfAwn6zh4N1sflXCTuhy3nRDOHrNCu1lPd6viFDZhSOsbJNjNok8m9yBIwtbzCNl61UMkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIp4PU+2PBBuWgBwq/B4/cTEe7CoL9An5CbPTz6AxkjgIgUPrbiAbeidLHM9KLDb21oN1vbKJGsUMA/gp6DNLPxh0="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/insert-css-1.1.0.tgz_1478821114824_0.16035280050709844"},"directories":{}},"2.0.0":{"name":"insert-css","version":"2.0.0","description":"insert a string of css into the <head>","main":"index.js","dependencies":{},"scripts":{"test":"browserify test.js | tape-run","example":"budo example.js"},"devDependencies":{"browserify":"^13.0.1","budo":"^8.3.0","computed-style":"^0.3.0","dom-event":"^1.0.0","tape":"^4.6.0","tape-run":"^2.1.4"},"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","inject","styles","stylesheet","style","html","head","link"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","gitHead":"d13317dfd48d0ed7272526d8a58058ad719f3c91","bugs":{"url":"https://github.com/substack/insert-css/issues"},"_id":"insert-css@2.0.0","_shasum":"eb5d1097b7542f4c79ea3060d3aee07d053880f4","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"vvo","email":"vincent.voyer@gmail.com"},"maintainers":[{"name":"jonaskello","email":"jonas.kello@gmail.com"},{"name":"substack","email":"substack@gmail.com"},{"name":"vvo","email":"vincent.voyer@gmail.com"}],"dist":{"shasum":"eb5d1097b7542f4c79ea3060d3aee07d053880f4","tarball":"https://registry.npmjs.org/insert-css/-/insert-css-2.0.0.tgz","integrity":"sha512-xGq5ISgcUP5cvGkS2MMFLtPDBtrtQPSFfC6gA6U8wHKqfjTIMZLZNxOItQnoSjdOzlXOLU/yD32RKC4SvjNbtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBSJH6bSsybIaixW8JPoW/n5PPFuXG4n6JHaLNdlemGxAiB9iv6pSW+6+bh+J0a3Luy/cB1EOGmQB2ouKtk3B5A/jQ=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/insert-css-2.0.0.tgz_1479133078951_0.7498202396091074"},"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","maintainers":[{"email":"vincent@codeagain.com","name":"vvo"},{"email":"jonas.kello@gmail.com","name":"jonaskello"}],"time":{"modified":"2022-11-18T08:03:12.067Z","created":"2013-03-14T20:34:01.066Z","0.0.0":"2013-03-14T20:34:07.491Z","0.1.0":"2013-12-18T19:25:05.221Z","0.1.1":"2014-01-30T03:08:09.528Z","0.2.0":"2014-06-17T00:37:54.515Z","1.0.0":"2016-06-26T20:11:12.129Z","1.1.0":"2016-11-10T23:38:35.362Z","2.0.0":"2016-11-14T14:18:00.796Z"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"repository":{"type":"git","url":"git://github.com/substack/insert-css.git"},"readmeFilename":"readme.markdown","users":{"joakin":true,"luiscarli":true,"axelav":true,"hzapata":true,"chriscalo":true,"nmccready":true,"gerst20051":true,"seaseng":true,"dennykuo":true,"akiva":true,"qqcome110":true,"monjer":true,"abuelwafa":true,"rochejul":true,"antixrist":true,"zuojiang":true,"lius971125":true},"homepage":"https://github.com/substack/insert-css","keywords":["css","insert","dom","browser","browserify","inject","styles","stylesheet","style","html","head","link"],"bugs":{"url":"https://github.com/substack/insert-css/issues"},"license":"MIT"}