{"name":"load-styles","description":"Add a CSS <style> tag to the document's <head> node","version":"2.0.0","keywords":["css","load","dynamic","head","style"],"license":"MIT","main":"index.js","gitHead":"8f35209985b4a1be4c293d9d32c8f918b7b54962","_id":"load-styles@2.0.0","scripts":{},"_shasum":"a0901c8f80ef0c869454eb580b4efc2f0be48471","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"}],"dist":{"shasum":"a0901c8f80ef0c869454eb580b4efc2f0be48471","tarball":"http://registry-npm.ywwl.com/load-styles/download/load-styles-2.0.0.tgz","integrity":"sha512-bKtTRlB+V8jij88ZoX73whwAbme5VQfmNPiK9KWDSyYevZgy3uwivIPBeM9w5+nyhA2BFFyWMSqPNola9MSn+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3dxvevSqgSmuqBBPTRSNmbkSHn15+nVX4JeTLn0o8AgIgSkQC+RUJ8GpkgS4/SGED6S90+1ExaQwgeaboTESbN4Q="}],"size":1546,"noattachment":false,"key":"/load-styles/-/load-styles-2.0.0.tgz"},"directories":{},"readme":"load-styles\n===========\n### Add a CSS `<style>` tag to the document's `<head>` node.\n\n\nInstallation\n------------\n\n``` bash\n$ npm install load-styles\n```\n\n\nAPI\n---\n\n### loadStyles(String cssStr[, Document doc]) → `<style>`\n\nCreates a `<style>` DOM node with the specified `cssStr` text injected into it.\nThen, the `<style>` node is inserted into the `<head>` element of the `doc`\ndocument instance. Finally, the DOM node is returned back to the user in case\nany further action is required on the node.\n\n\nExample\n-------\n\n``` html\n<div id=\"foo\">This div should be red.</div>\n```\n\n``` js\nvar loadStyles = require('load-styles');\nloadStyles(\n  '#foo {' +\n  '  width: 100px;' +\n  '  height: 100px;' +\n  '  background-color: red;' +\n  '  text-align: center;' +\n  '  font-size: 9px;' +\n  '}'\n);\n```\n\n\nLicense\n-------\n\nMIT\n","publish_time":1417648980462,"_cnpm_publish_time":1417648980462,"dist-tags":{"latest":"2.0.0"}}