{"name":"react-style-singleton","version":"2.2.3","description":"Just create a single stylesheet...","main":"dist/es5/index.js","types":"dist/es5/index.d.ts","jsnext:main":"dist/es2015/index.js","module":"dist/es2015/index.js","module:es2019":"dist/es2019/index.js","scripts":{"dev":"lib-builder dev","test":"jest","test:ci":"jest --runInBand --coverage","build":"lib-builder build && yarn size:report","release":"yarn build && yarn test","size":"npx size-limit","size:report":"npx size-limit --json > .size.json","lint":"lib-builder lint","format":"lib-builder format","update":"lib-builder update","prepublish-only":"yarn build && yarn changelog","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","changelog:rewrite":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0"},"repository":{"type":"git","url":"git+https://github.com/theKashey/react-style-singleton.git"},"bugs":{"url":"https://github.com/theKashey/react-style-singleton/issues"},"homepage":"https://github.com/theKashey/react-style-singleton#readme","author":{"name":"Anton Korzunov","url":"thekashey@gmail.com"},"license":"MIT","devDependencies":{"@theuiteam/lib-builder":"^0.1.4","@size-limit/preset-small-lib":"^11.0.2","size-limit":"^11.0.2","react":"^16.8.6","react-dom":"^16.8.6"},"peerDependencies":{"@types/react":"*","react":"^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"},"peerDependenciesMeta":{"@types/react":{"optional":true}},"keywords":["react","style","css"],"dependencies":{"tslib":"^2.0.0","get-nonce":"^1.0.0"},"engines":{"node":">=10"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{ts,tsx}":["prettier --write","eslint --fix","git add"],"*.{js,css,json,md}":["prettier --write","git add"]},"prettier":{"printWidth":120,"trailingComma":"es5","tabWidth":2,"semi":true,"singleQuote":true},"packageManager":"yarn@1.22.19","_id":"react-style-singleton@2.2.3","gitHead":"dc032ea2e1c783897b34106a3102471dc9fd1a3d","_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==","shasum":"4265608be69a4d70cfe3047f2c6c88b2c3ace388","tarball":"http://registry-npm.ywwl.com/react-style-singleton/download/react-style-singleton-2.2.3.tgz","fileCount":28,"unpackedSize":19433,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfAD0bjYQ2Pdi2E8UcAAuGELvJEdt2bB2x1B4ViKBk1AIhAJr1dNJ6AbTzy8OiduuwkpltBQnICjLpSY9xoXxuEpeW"}],"size":4876,"noattachment":false,"key":"/react-style-singleton/-/react-style-singleton-2.2.3.tgz"},"_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-style-singleton_2.2.3_1734229657302_0.19702815950327834"},"_hasShrinkwrap":false,"readme":"react-style-singleton\n====\n\n__300b__ with all dependencies, minified and gzipped\n\n\nCreates a style component with internal _tracker_.\n- Adds styles to the browser on the __first__ instance mount.\n- Removes after the __last__ instance unmount.\n- Thus helps you deliver styles you need to the customer, and clean up later.\n- Is not server-side rendering compatible!\n\n\n# API\n\n## Component\n\n```js\nimport {styleSingleton} from 'react-style-singleton'\n\nconst Style = styleSingleton();\n\nexport const App = () => (\n  <Style styles={'body {color:red}'} />\n);\n```\n\n## Hook\n\n```js\nimport {styleHookSingleton} from 'react-style-singleton';\n\nconst useStyle = styleHookSingleton();\nconst useAnotherStyle = styleHookSingleton();\n\nexport const App = () => {\n  useStyle('div {color:red}');\n  useAnotherStyle('body { background-color:red }');\n  return (<div />);\n}\n```\n\n# License\n\nMIT","publish_time":1734229657493,"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_cnpm_publish_time":1734229657493,"dist-tags":{"latest":"2.2.3"}}