{"_id":"styletron-server-legacy","_rev":"29-308b1b6f36730e2699ef131d1e83b066","name":"styletron-server-legacy","description":"Legacy package for 1.x styletron-server","dist-tags":{"latest":"2.6.1"},"versions":{"2.0.0-beta.3":{"name":"styletron-server-legacy","version":"2.0.0-beta.3","description":"A server-rendering helper module for styletron","author":{"name":"Ryan Tsao","email":"ryan.j.tsao@gmail.com"},"homepage":"https://github.com/rtsao/styletron","repository":{"type":"git","url":"git+ssh://git@github.com/rtsao/styletron.git"},"bugs":{"url":"https://github.com/rtsao/styletron/issues"},"main":"index.js","scripts":{"test":"node test/index.js"},"devDependencies":{},"dependencies":{"safe-string":"^1.0.0","styletron-legacy":"^2.0.0-beta.3"},"license":"MIT","_id":"styletron-server-legacy@2.0.0-beta.3","_shasum":"641e9b39542885688fc7ab1fb6d16acc2a2ab108","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"rtsao","email":"ryan.j.tsao@gmail.com"},"dist":{"shasum":"641e9b39542885688fc7ab1fb6d16acc2a2ab108","tarball":"https://registry.npmjs.org/styletron-server-legacy/-/styletron-server-legacy-2.0.0-beta.3.tgz","integrity":"sha512-KQy+gXtrHx0HtZUm3OWgvLgAcdaBji9fen+JGSjoHP37kasoNzGtYvldhFa9a8fMNvruDtp6r/XpKPdm8gKdng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeUSQojkz6cLAV4dadxudaloEefRTAxCpPaBlpQS5N/gIhAOt5d8P5utmNpwFh5CWMRXgOcHaFYzZf7wDmv5GhbS17"}]},"maintainers":[{"name":"rtsao","email":"ryan.j.tsao@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/styletron-server-legacy-2.0.0-beta.3.tgz_1475518507765_0.5810829459223896"},"directories":{}},"2.0.2-beta.0":{"name":"styletron-server-legacy","version":"2.0.2-beta.0","description":"Legacy package for 1.x styletron-server","author":{"name":"Ryan Tsao","email":"ryan.j.tsao@gmail.com"},"homepage":"https://github.com/rtsao/styletron","repository":{"type":"git","url":"git+ssh://git@github.com/rtsao/styletron.git"},"bugs":{"url":"https://github.com/rtsao/styletron/issues"},"main":"index.js","scripts":{"test":"node test/index.js"},"devDependencies":{},"dependencies":{"safe-string":"^1.0.0","styletron-legacy":"^2.0.2-beta.0"},"license":"MIT","_id":"styletron-server-legacy@2.0.2-beta.0","_shasum":"fea7eea0208efbbc386a4a9189962d22c7da6de7","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"rtsao","email":"ryan.j.tsao@gmail.com"},"dist":{"shasum":"fea7eea0208efbbc386a4a9189962d22c7da6de7","tarball":"https://registry.npmjs.org/styletron-server-legacy/-/styletron-server-legacy-2.0.2-beta.0.tgz","integrity":"sha512-DsuePi04e/r9obq46WFpacVJbhPR8vbg6C92FVeqZWg7TuTEjz5Vo9AdCfFaAGXKMJB8dDVqXpLckC12zxaTsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoe6bb4RVrtPGVNK0/qITZ6dph5ZW5ieGwk41T5kW7TgIgfdwUwaOue0PaH8ryRmUD6cJS1G7cxcv3XvvC3nnA+qo="}]},"maintainers":[{"name":"rtsao","email":"ryan.j.tsao@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/styletron-server-legacy-2.0.2-beta.0.tgz_1477258355903_0.15291818138211966"},"directories":{}},"2.0.2-beta.1":{"name":"styletron-server-legacy","version":"2.0.2-beta.1","description":"Legacy package for 1.x styletron-server","author":{"name":"Ryan Tsao","email":"ryan.j.tsao@gmail.com"},"homepage":"https://github.com/rtsao/styletron","repository":{"type":"git","url":"git+ssh://git@github.com/rtsao/styletron.git"},"bugs":{"url":"https://github.com/rtsao/styletron/issues"},"main":"index.js","scripts":{"test":"node test/index.js"},"devDependencies":{},"dependencies":{"safe-string":"^1.0.0","styletron-legacy":"^2.0.2-beta.1"},"license":"MIT","_id":"styletron-server-legacy@2.0.2-beta.1","_shasum":"4037282870aa3deefc18438eb6d6a26767964d4a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"rtsao","email":"ryan.j.tsao@gmail.com"},"dist":{"shasum":"4037282870aa3deefc18438eb6d6a26767964d4a","tarball":"https://registry.npmjs.org/styletron-server-legacy/-/styletron-server-legacy-2.0.2-beta.1.tgz","integrity":"sha512-zg90Ol0EkVfM9Ydb2KOR2UCS+ZJxsluACmo8barsn90vVR42A+vOHdyfj+YE3mrxIX4pfSV7WzPGYyWVL6D/zQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzpGcl79BK8d1cCdK4dzul/TPvaG1FdH0URs+zP0w9vAiEA08MjdK3sWJWBu50MGhixRR+n2XsanS27V6fLCAcKf5Q="}]},"maintainers":[{"name":"rtsao","email":"ryan.j.tsao@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/styletron-server-legacy-2.0.2-beta.1.tgz_1477258560538_0.028898209566250443"},"directories":{}},"2.0.2-beta.2":{"name":"styletron-server-legacy","version":"2.0.2-beta.2","description":"Legacy package for 1.x styletron-server","author":{"name":"Ryan Tsao","email":"ryan.j.tsao@gmail.com"},"homepage":"https://github.com/rtsao/styletron","repository":{"type":"git","url":"git+ssh://git@github.com/rtsao/styletron.git"},"bugs":{"url":"https://github.com/rtsao/styletron/issues"},"main":"index.js","scripts":{"test":"node test/index.js"},"devDependencies":{},"dependencies":{"safe-string":"^1.0.0","styletron-legacy":"^2.0.2-beta.2"},"license":"MIT","_id":"styletron-server-legacy@2.0.2-beta.2","_shasum":"ef7e1d04e830698929577c904cb41de4a44f63f9","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"rtsao","email":"ryan.j.tsao@gmail.com"},"dist":{"shasum":"ef7e1d04e830698929577c904cb41de4a44f63f9","tarball":"https://registry.npmjs.org/styletron-server-legacy/-/styletron-server-legacy-2.0.2-beta.2.tgz","integrity":"sha512-PT7JFxMx3DESVnQF8BF0THRnqP2/4Gzjg1HC3+0BLZt4BYTYTY1NEYfCZCoQReSEOTnLK3O49kzZ9mmSTVFiww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDPWJDIChpNLme2Z1gVIxuZEvOTXvkJ/fnpKycQfMt/nAiEA1FBEdgXnTxP4krtuGcxMsYcmd7GFfPJHEaUtGcr8Wj0="}]},"maintainers":[{"name":"rtsao","email":"ryan.j.tsao@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/styletron-server-legacy-2.0.2-beta.2.tgz_1477258914179_0.5511277106124908"},"directories":{}},"2.0.2-beta.3":{"name":"styletron-server-legacy","version":"2.0.2-beta.3","description":"Legacy package for 1.x styletron-server","author":{"name":"Ryan Tsao","email":"ryan.j.tsao@gmail.com"},"homepage":"https://github.com/rtsao/styletron","repository":{"type":"git","url":"git+ssh://git@github.com/rtsao/styletron.git"},"bugs":{"url":"https://github.com/rtsao/styletron/issues"},"main":"index.js","scripts":{"test":"node test/index.js"},"devDependencies":{},"dependencies":{"safe-string":"^1.0.0","styletron-legacy":"^2.0.2-beta.3"},"license":"MIT","_id":"styletron-server-legacy@2.0.2-beta.3","_shasum":"ffc087354a7fd58d0861082df85d4d48739911b1","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"rtsao","email":"ryan.j.tsao@gmail.com"},"dist":{"shasum":"ffc087354a7fd58d0861082df85d4d48739911b1","tarball":"https://registry.npmjs.org/styletron-server-legacy/-/styletron-server-legacy-2.0.2-beta.3.tgz","integrity":"sha512-a2i7ujLLqkYukcPB6agJN2Rq2Y2Qm6qFx+3QCRoxVhrGKmFiTW9SaUwlPwUT7c914IUgf9GmkI3araed0K/nJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWj8TCLVnKVoIt3s+/15LzME+lOMQCMkqbBo1/MoBWMAiAiHdoPNAWX7VxkrN65OHwmM8mnfA+e1IBiX5P3oiJFMA=="}]},"maintainers":[{"name":"rtsao","email":"ryan.j.tsao@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/styletron-server-legacy-2.0.2-beta.3.tgz_1477259061045_0.4039687232580036"},"directories":{}},"2.0.5":{"name":"styletron-server-legacy","version":"2.0.5","description":"Legacy package for 1.x styletron-server","author":{"name":"Ryan Tsao","email":"ryan.j.tsao@gmail.com"},"homepage":"https://github.com/rtsao/styletron","repository":{"type":"git","url":"git+ssh://git@github.com/rtsao/styletron.git"},"bugs":{"url":"https://github.com/rtsao/styletron/issues"},"main":"index.js","scripts":{"test":"node test/index.js"},"devDependencies":{},"dependencies":{"safe-string":"^1.0.0","styletron-legacy":"^2.0.5"},"license":"MIT","_id":"styletron-server-legacy@2.0.5","_shasum":"74c13703268583eb0ec257d388ba8df7293af976","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"rtsao","email":"ryan.j.tsao@gmail.com"},"dist":{"shasum":"74c13703268583eb0ec257d388ba8df7293af976","tarball":"https://registry.npmjs.org/styletron-server-legacy/-/styletron-server-legacy-2.0.5.tgz","integrity":"sha512-ZABxx06y6uzW/oNZtQMkCRzjeGWX9XHdsmOzlPNAebz8EwjPtrCqiJGF2iwGeOEzxnWdzk/qdipijbNp0myalQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+GAOthwudGIIGXWyC7inh0DTU/KEMgJDttvb4Af93/AiEA7+uDsKPMyROChT4N+F77HxfLZbR7UNb9hwxEzxg0Ljo="}]},"maintainers":[{"name":"rtsao","email":"ryan.j.tsao@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/styletron-server-legacy-2.0.5.tgz_1479776224267_0.13371290732175112"},"directories":{}},"2.5.1":{"name":"styletron-server-legacy","version":"2.5.1","description":"Legacy package for 1.x styletron-server","author":{"name":"Ryan Tsao","email":"ryan.j.tsao@gmail.com"},"homepage":"https://github.com/rtsao/styletron","repository":{"type":"git","url":"git+ssh://git@github.com/rtsao/styletron.git"},"bugs":{"url":"https://github.com/rtsao/styletron/issues"},"main":"index.js","scripts":{"test":"node test/index.js"},"devDependencies":{},"dependencies":{"safe-string":"^1.0.0","styletron-legacy":"^2.5.1"},"license":"MIT","_id":"styletron-server-legacy@2.5.1","_shasum":"a62c478554ebb9528cc4e8f44ee4ee4aaa977623","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"rtsao","email":"ryan.j.tsao@gmail.com"},"dist":{"shasum":"a62c478554ebb9528cc4e8f44ee4ee4aaa977623","tarball":"https://registry.npmjs.org/styletron-server-legacy/-/styletron-server-legacy-2.5.1.tgz","integrity":"sha512-bz4E9DBMB3T7bLZkW8ZRZwlGoNrEnqS3nH4k6CnCoXvHcpRhgN01eZ3TSWEU+aGIKazrmMlnpvDeUv3PbHde8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/17W3GE0DAYXWbQMsVl2Rjo7cl9fhazyKgbUf7OaxIAiEAn/xIDCA1WUL3lI8Xk4YvaeJQ2KZAV0RQDGmXjxaKLXQ="}]},"maintainers":[{"name":"rtsao","email":"ryan.j.tsao@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/styletron-server-legacy-2.5.1.tgz_1484958521480_0.2665083894971758"},"directories":{}},"2.6.0":{"name":"styletron-server-legacy","version":"2.6.0","description":"Legacy package for 1.x styletron-server","author":{"name":"Ryan Tsao","email":"ryan.j.tsao@gmail.com"},"homepage":"https://github.com/rtsao/styletron","repository":{"type":"git","url":"git+ssh://git@github.com/rtsao/styletron.git"},"bugs":{"url":"https://github.com/rtsao/styletron/issues"},"main":"index.js","scripts":{"test":"node test/index.js"},"devDependencies":{},"dependencies":{"safe-string":"^1.0.0","styletron-legacy":"^2.6.0"},"license":"MIT","_id":"styletron-server-legacy@2.6.0","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"rtsao","email":"ryan.j.tsao@gmail.com"},"dist":{"integrity":"sha512-eQk7bom2jRhxjs7IYbZsx8OWJceth2IKJB7PTREuPLvz/R4J09YdiXECf+MCD/PuflyVaF1KQSYfI7lZkwjFQw==","shasum":"07069fc66875d32105bab1f5726c451dac8d68ba","tarball":"https://registry.npmjs.org/styletron-server-legacy/-/styletron-server-legacy-2.6.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDottsns4HWO+n3iDhbKwF25NzysSG5qC4Q0B84E3x93QIgXzUAPx95gsoSOcLwCoGC7RSPZs+M4U4M3FnJ/xh48f8="}]},"maintainers":[{"name":"rtsao","email":"ryan.j.tsao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styletron-server-legacy-2.6.0.tgz_1509049055522_0.1659126658923924"},"directories":{}},"2.6.1":{"name":"styletron-server-legacy","version":"2.6.1","description":"Legacy package for 1.x styletron-server","author":{"name":"Ryan Tsao","email":"ryan.j.tsao@gmail.com"},"homepage":"https://github.com/rtsao/styletron","repository":{"type":"git","url":"git+ssh://git@github.com/rtsao/styletron.git"},"bugs":{"url":"https://github.com/rtsao/styletron/issues"},"main":"index.js","scripts":{"test":"node test/index.js"},"devDependencies":{},"dependencies":{"safe-string":"^1.0.0","styletron-legacy":"^2.6.1"},"license":"MIT","_id":"styletron-server-legacy@2.6.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"rtsao","email":"ryan.j.tsao@gmail.com"},"dist":{"integrity":"sha512-/2OoihGd3PCIyP2FRiFBn0UYeuJiiOSKX06yIRyFj19NhYNb/NHFBNLpKM0b1XF4LhR5DbwcSd9ZL4ShWb0qhw==","shasum":"4e76547b871d1a369eab94ccb4225ca569e73e1f","tarball":"https://registry.npmjs.org/styletron-server-legacy/-/styletron-server-legacy-2.6.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDo4h7CL64gcUgjtglz8xDsxs7WV2kkgMBzSXM2q0w6lAiBMxFtIXiie890uTGrEsoVnT7seSTBUbB0JiWb0aaLGSg=="}]},"maintainers":[{"name":"rtsao","email":"ryan.j.tsao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/styletron-server-legacy-2.6.1.tgz_1510685044791_0.7566115837544203"},"directories":{}}},"readme":"# styletron-server\n\n[![build status][build-badge]][build-href]\n[![dependencies status][deps-badge]][deps-href]\n[![npm version][npm-badge]][npm-href]\n\nA server-rendering helper module for [`styletron`](https://github.com/rtsao/styletron)\n\n## Usage\n\n#### Extracting \"injected\" CSS at render-time on the server\n\n```js\nconst styletronServer = require('styletron-server');\n\nconst renderApp = function mockRenderFn() {\n  /**\n   * `renderApp` is some function that renders your app, returning a string of HTML. \n   * This function should also result in `injectOnce` being called at some point.\n   */\n};\n\nconst {html, css, hydrationSrc} = styletronServer.renderStatic(() => {\n  const html = renderApp();\n  return html;\n}\n\n/**\n * `html` is simply the return value of the function passed into `renderStatic`.\n * It is passed through for convenience.\n */\n\n/**\n * `css` is a string containing all CSS that was that injected into the buffer\n * during the render.\n */\n\n/**\n * `hydrationSrc` is a string of JS source code to hydrate styletron on the client.\n * This script injects a <style> element containing the server-rendered styles and also \n * prevents re-injection of server-rendered styles on subsequent client renders.\n * Set this string as the contents of a <script> element in <head> so it is before <body>\n * and your client bundle.\n */\n```\n\n[build-badge]: https://travis-ci.org/rtsao/styletron-server.svg?branch=master\n[build-href]: https://travis-ci.org/rtsao/styletron-server\n[deps-badge]: https://david-dm.org/rtsao/styletron-server.svg\n[deps-href]: https://david-dm.org/rtsao/styletron-server\n[npm-badge]: https://badge.fury.io/js/styletron-server.svg\n[npm-href]: https://www.npmjs.com/package/styletron-server\n","maintainers":[{"name":"rtsao","email":"ryan.j.tsao@gmail.com"}],"time":{"modified":"2022-06-27T01:41:06.508Z","created":"2016-10-03T18:15:10.520Z","2.0.0-beta.3":"2016-10-03T18:15:10.520Z","2.0.2-beta.0":"2016-10-23T21:32:38.569Z","2.0.2-beta.1":"2016-10-23T21:36:00.781Z","2.0.2-beta.2":"2016-10-23T21:41:54.411Z","2.0.2-beta.3":"2016-10-23T21:44:23.710Z","2.0.5":"2016-11-22T00:57:04.492Z","2.5.1":"2017-01-21T00:28:41.702Z","2.6.0":"2017-10-26T20:17:35.584Z","2.6.1":"2017-11-14T18:44:04.889Z"},"homepage":"https://github.com/rtsao/styletron","repository":{"type":"git","url":"git+ssh://git@github.com/rtsao/styletron.git"},"author":{"name":"Ryan Tsao","email":"ryan.j.tsao@gmail.com"},"bugs":{"url":"https://github.com/rtsao/styletron/issues"},"license":"MIT","readmeFilename":"README.md"}