react-style-singleton
npmv2.2.3TypeScriptJust create a single stylesheet...
Adopt with care
react-style-singleton is usable, with caveats. Last published 634 days ago. 2 releases in the last 2 years.
- AAdoption: grade A, Excellent.
59.1M downloads per week and 2 known dependents.
- CMaintenance: grade C, Fair — worth a look.
Last published 634 days ago. 2 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 2 transitive packages, about 24 KB installed (at least — some of the tree is still being crawled).
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding react-style-singleton to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing react-style-singleton, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=10
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the react-style-singleton README.
import {styleSingleton} from 'react-style-singleton'
const Style = styleSingleton();
export const App = () => (
<Style styles={'body {color:red}'} />
);react-style-singleton vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
Dependencies
Declared by react-style-singleton v2.2.3. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (2)
Dev (5)
Used by
Popular packages that depend on react-style-singleton.
Relationship graph
Dependencies (left) and dependents (right) of react-style-singleton.
Frequently installed together
TypeScript definitions for react
React is a JavaScript library for building user interfaces.
React package for working with the DOM.
Sidecar code splitting utils
Removes body scroll without content _shake_
The same useRef, but with callback
Release history
2 releases in the last two years, typically about 182 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.2.3latest | 1 year ago | 19 KB | MIT |
| 2.2.2 | 1 year ago | 19 KB | MIT |
| 2.2.1 | 4 years ago | 18 KB | MIT |
| 2.2.0 | 4 years ago | 13 KB | MIT |
| 2.1.1 | 5 years ago | 7.8 KB | MIT |
| 2.1.0 | 6 years ago | 7.8 KB | MIT |
| 2.0.0 | 7 years ago | 7.5 KB | MIT |
| 1.1.1 | 7 years ago | 9.7 KB | MIT |
| 1.1.0 | 7 years ago | 9.7 KB | MIT |
| 1.0.1 | 8 years ago | 6.4 KB | MIT |
Overview
react-style-singleton is an npm package that just create a single stylesheet. It is extremely widely used, with about 59.1M downloads per week and 2 known dependents in the graph. The latest version is 2.2.3, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need just create a single stylesheet and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (59.1M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use react-style-singleton?
react-style-singleton is usable, with caveats. Last published 634 days ago. 2 releases in the last 2 years.
How do I install react-style-singleton?
Run `npm install react-style-singleton` to add react-style-singleton to your npm project.
How many dependencies does react-style-singleton have?
react-style-singleton declares 9 direct dependencies and pulls in 2 packages in total once its runtime tree is resolved totalling about 24 KB on disk.
What license is react-style-singleton released under?
react-style-singleton is distributed under the MIT license.
How popular is react-style-singleton?
react-style-singleton has approximately 59,083,972 downloads per week and 2 known dependent packages.
Is react-style-singleton still maintained?
The most recent release of react-style-singleton (v2.2.3) was published 1 year ago.
Does react-style-singleton run install scripts?
No. react-style-singleton does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.