Skip to content
JS
Package

inject-stylesheet

Create a style element with CSS properties, filtering input using a allowlist or blocklist

v7.0.2, 29 Jan 2026MITCommonJSTypes: Bundled
$ npm install inject-stylesheet

Key numbers

As of 25 Sept 2026
Weekly downloads
734.9k
+113% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
7 months ago
v7.0.2
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.1m (25 Aug 2026)Low 198.1k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

734,930 downloads last week, 3,668,119 in the last month. The 12-month change of +113% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
210 in total
Latest version
7.0.2, 29 Jan 20267 months ago
First published
13 May 2016
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

  1. v7 first release 7.0.0, 16 Dec 2025
  2. v6 first release 6.0.0, 5 Dec 2023
  3. v5 first release 5.0.0, 28 Sept 2021
  4. v4 first release 4.0.0, 5 Aug 2020
  5. v3 first release 3.0.0, 13 Jul 2020
  6. v2 first release 2.0.0, 21 May 2019
  7. v1 first release 1.0.0, 13 May 2016

Recent releases

VersionPublished
7.0.229 Jan 2026
7.0.016 Dec 2025
6.0.220 Dec 2024
6.0.11 Jul 2024
6.0.05 Dec 2023
5.0.028 Sept 2021
4.0.05 Aug 2020
3.0.013 Jul 2020
2.0.021 May 2019
1.0.013 May 2016
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
31 kB
Dependencies (0)
None
npm install inject-stylesheet
  • jsDelivrhttps://cdn.jsdelivr.net/npm/inject-stylesheet@7.0.2/
  • unpkghttps://unpkg.com/inject-stylesheet@7.0.2/
  • esm.shhttps://esm.sh/inject-stylesheet@7.0.2
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet; no category.