Skip to content
JS
Package

style-to-object

Parse CSS inline style to JavaScript object.

v2.0.2, 6 Jul 2026MITESM + CommonJSTypes: BundledCSS-in-JS and stylingParsers and serialisers
$ npm install style-to-object

Key numbers

As of 25 Sept 2026
Weekly downloads
34.4m
+242% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
2 months ago
v2.0.2
GitHub stars
76
7 forks
Open issues / PRs
0 / 1
Contributors
9
Commits, last 52 weeks
332

Downloads

Last week 2026-09-15 to 2026-09-21
020m40m60mSept 2025Mar 2026Sept 2026High 47.3m (25 Aug 2026)Low 7.3m (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.

34,356,198 downloads last week, 170,672,196 in the last month. The 12-month change of +242% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
829 in total
Latest version
2.0.2, 6 Jul 20262 months ago
First published
23 Nov 2017
Last push to GitHub
23 Sept 20261 day before the snapshot
Repository archived
No
Open issues
0
Open pull requests
1
Commits, last 52 weeks
332
Dependents on npm
155

Major versions

  1. v2 first release 2.0.0, 14 Jun 2026
  2. v1 first release 1.0.0, 15 Oct 2023
  3. v0 first release 0.1.0, 23 Nov 2017

Recent releases

VersionPublished
2.0.26 Jul 2026
2.0.14 Jul 2026
2.0.014 Jun 2026
1.0.1416 Nov 2025
1.0.1316 Nov 2025
1.0.1224 Oct 2025
1.0.113 Oct 2025
1.0.102 Oct 2025
1.0.96 Jun 2025
1.0.811 Sept 2024
1.0.728 Aug 2024
1.0.627 Mar 2024
1.0.51 Dec 2023
1.0.431 Oct 2023
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
42 kB
Dependencies (1)
inline-style-parser
npm install style-to-object
  • jsDelivrhttps://cdn.jsdelivr.net/npm/style-to-object@2.0.2/
  • unpkghttps://unpkg.com/style-to-object@2.0.2/
  • esm.shhttps://esm.sh/style-to-object@2.0.2
PackageWeekly downloadsGzipLast releaseModuleComparison
postcss229.7m-21 days agoESM + CommonJS-
detective-postcss3.7m-2 months agoESM only-
postcss-values-parser5.9m-4 months agoESM only-
mdn-data90.6m-1 day agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.