{"name":"@emotion/cache","version":"11.13.5","license":"MIT","_id":"@emotion/cache@11.13.5","homepage":"https://github.com/emotion-js/emotion/tree/main#readme","bugs":{"url":"https://github.com/emotion-js/emotion/issues"},"dist":{"shasum":"e78dad0489e1ed7572507ba8ed9d2130529e4266","tarball":"http://registry-npm.ywwl.com/@emotion/cache/download/@emotion/cache-11.13.5.tgz","fileCount":41,"integrity":"sha512-Z3xbtJ+UcK76eWkagZ1onvn/wAVb1GOMuR15s30Fm2wrMgC7jzpnO2JZXr4eujTTqoQFUrZIw/rT0c6Zzjca1g==","signatures":[{"sig":"MEQCIHwsdiZ7Nphlqatdj9pEqyOrWw0MRI49+pYw8ynbzV4tAiArI8x40ua5JqZyfeUAqVo+umAD3tid1lYC9ElYdCtqNQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":249053,"size":24108,"noattachment":false,"key":"/@emotion/cache/-/@emotion/cache-11.13.5.tgz"},"main":"dist/emotion-cache.cjs.js","types":"types/index.d.ts","module":"dist/emotion-cache.esm.js","exports":{".":{"types":{"import":"./dist/emotion-cache.cjs.mjs","default":"./dist/emotion-cache.cjs.js"},"import":"./dist/emotion-cache.cjs.mjs","module":"./dist/emotion-cache.esm.js","worker":{"import":"./dist/emotion-cache.edge-light.cjs.mjs","module":"./dist/emotion-cache.edge-light.esm.js","default":"./dist/emotion-cache.edge-light.cjs.js"},"browser":{"import":"./dist/emotion-cache.browser.cjs.mjs","module":"./dist/emotion-cache.browser.esm.js","default":"./dist/emotion-cache.browser.cjs.js"},"default":"./dist/emotion-cache.cjs.js","workerd":{"import":"./dist/emotion-cache.edge-light.cjs.mjs","module":"./dist/emotion-cache.edge-light.esm.js","default":"./dist/emotion-cache.edge-light.cjs.js"},"edge-light":{"import":"./dist/emotion-cache.edge-light.cjs.mjs","module":"./dist/emotion-cache.edge-light.esm.js","default":"./dist/emotion-cache.edge-light.cjs.js"},"development":{"import":"./dist/emotion-cache.development.cjs.mjs","module":"./dist/emotion-cache.development.esm.js","worker":{"import":"./dist/emotion-cache.development.edge-light.cjs.mjs","module":"./dist/emotion-cache.development.edge-light.esm.js","default":"./dist/emotion-cache.development.edge-light.cjs.js"},"browser":{"import":"./dist/emotion-cache.browser.development.cjs.mjs","module":"./dist/emotion-cache.browser.development.esm.js","default":"./dist/emotion-cache.browser.development.cjs.js"},"default":"./dist/emotion-cache.development.cjs.js","workerd":{"import":"./dist/emotion-cache.development.edge-light.cjs.mjs","module":"./dist/emotion-cache.development.edge-light.esm.js","default":"./dist/emotion-cache.development.edge-light.cjs.js"},"edge-light":{"import":"./dist/emotion-cache.development.edge-light.cjs.mjs","module":"./dist/emotion-cache.development.edge-light.esm.js","default":"./dist/emotion-cache.development.edge-light.cjs.js"}}},"./package.json":"./package.json"},"gitHead":"c161e6f2f85977c27cc4a258d4efb0504a3b77b1","imports":{"#is-browser":{"worker":"./src/conditions/false.js","browser":"./src/conditions/true.js","default":"./src/conditions/is-browser.js","workerd":"./src/conditions/false.js","edge-light":"./src/conditions/false.js"},"#is-development":{"default":"./src/conditions/false.js","development":"./src/conditions/true.js"}},"scripts":{"test:typescript":"dtslint types"},"_npmUser":{"name":"emotion-release-bot","email":"emotion-release-bot@hamil.town"},"repository":{"url":"git+https://github.com/emotion-js/emotion.git#main","type":"git"},"_npmVersion":"8.19.4","description":"emotion's cache","directories":{},"_nodeVersion":"16.20.2","dependencies":{"stylis":"4.2.0","@emotion/sheet":"^1.4.0","@emotion/utils":"^1.4.2","@emotion/memoize":"^0.9.0","@emotion/weak-memoize":"^0.4.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.4.5","@emotion/hash":"*","@definitelytyped/dtslint":"0.0.112"},"_npmOperationalInternal":{"tmp":"tmp/cache_11.13.5_1732089507631_0.06487079579168054","host":"s3://npm-registry-packages"},"readme":"# @emotion/cache\n\n### createCache\n\n`createCache` allows for low level customization of how styles get inserted by emotion. It's intended to be used with the [`<CacheProvider/>`](https://emotion.sh/docs/cache-provider) component to override the default cache, which is created with sensible defaults for most applications.\n\n```javascript\nimport createCache from '@emotion/cache'\n\nexport const myCache = createCache({\n  key: 'my-prefix-key',\n  stylisPlugins: [\n    /* your plugins here */\n  ]\n})\n```\n\n### Primary use cases\n\n- Using emotion in embedded contexts such as an `<iframe/>`\n\n- Setting a [nonce](#nonce-string) on any `<style/>` tag emotion creates for security purposes\n\n- Using emotion with a developer defined `<style/>` tag\n\n- Using emotion with custom Stylis plugins\n\n## Options\n\n### `nonce`\n\n`string`\n\nA nonce that will be set on each style tag that emotion inserts for [Content Security Policies](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).\n\n### `stylisPlugins`\n\n`Array<Function>`\n\nA Stylis plugins that will be run by Stylis during preprocessing. [Read the Stylis docs to find out more](https://github.com/thysultan/stylis.js#middleware). This can be used for many purposes such as RTL.\n\n> Note:\n>\n> Prefixer is just a plugin which happens to be put in default `stylisPlugins`. If you plan to use custom `stylisPlugins` and you want to have your styles prefixed automatically you must include prefixer in your custom `stylisPlugins`. You can import `prefixer` from the `stylis` module to do that (`import { prefixer } from 'stylis'`);\n\n### `key`\n\n`string (Pattern: [^a-z-])`\n\nThe prefix before class names. It will also be set as the value of the `data-emotion` attribute on the style tags that emotion inserts and it's used in the attribute name that marks style elements in `renderStylesToString` and `renderStylesToNodeStream`. This is **required if using multiple emotion caches in the same app**.\n\n### `container`\n\n`Node`\n\nA DOM node that emotion will insert all of its style tags into. This is useful for inserting styles into iframes or windows.\n\n### `prepend`\n\n`boolean`\n\nA boolean representing whether to prepend rather than append style tags into the specified container DOM node.\n","publish_time":1732089507859,"maintainers":[{"name":"tkh44","email":"kye.hohenberger@gmail.com"},{"name":"emotion-release-bot","email":"emotion-release-bot@hamil.town"},{"name":"andarist","email":"mateuszburzynski@gmail.com"},{"name":"emmatown","email":"npm@emmas.town"}],"_cnpm_publish_time":1732089507859,"dist-tags":{"latest":"11.14.0","next":"11.0.0-next.19","rc":"11.0.0-rc.0","really-unsafe-please-do-not-use":"10.0.0-really-unsafe-please-do-not-use.2"}}