</>PackageGraphPackageGraph

react-style-singleton

npmv2.2.3TypeScript

Just 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.

2
Direct dependencies

Runtime packages this one declares itself.

2
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

24 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

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

MIT

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.

PackageWeekly downloadsDependentsLicenseLast release
react-style-singletonthis page59.1M2MIT1 year ago
csstype142.8M2MIT2 days ago
node-sassdeprecated888.4K0MIT2 days ago
less02Apache-2.02 days ago
stylus01MIT2 days ago
sass04MIT2 days ago

Dependencies

Declared by react-style-singleton v2.2.3. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (2)

get-nonce ^1.0.0tslib ^2.0.0

Dev (5)

@size-limit/preset-small-lib ^11.0.2@theuiteam/lib-builder ^0.1.4react ^16.8.6react-dom ^16.8.6size-limit ^11.0.2

Used by

Popular packages that depend on react-style-singleton.

Relationship graph

Dependencies (left) and dependents (right) of react-style-singleton.

Frequently installed together

Release history

2 releases in the last two years, typically about 182 days apart.

Recent versions of react-style-singleton
VersionPublishedSizeLicense
2.2.3latest1 year ago19 KBMIT
2.2.21 year ago19 KBMIT
2.2.14 years ago18 KBMIT
2.2.04 years ago13 KBMIT
2.1.15 years ago7.8 KBMIT
2.1.06 years ago7.8 KBMIT
2.0.07 years ago7.5 KBMIT
1.1.17 years ago9.7 KBMIT
1.1.07 years ago9.7 KBMIT
1.0.18 years ago6.4 KBMIT

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

Keywords

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.