Back to Explore

remarkablemark/style-to-js

GitHub
3 updates · last 90 days2 watchersOpen source

Last release:

style-to-js parses CSS inline style strings into a JavaScript object with camelCased property names. It’s useful for converting CSS declarations like `background-color: #BADA55` into `{ backgroundColor: "#BADA55" }`, including support for vendor-prefixed properties and custom properties.

Project status

  • The source appears actively maintained, with new updates close to today (last push on 2026-07-07, plus prior updates on 2026-06-19 and 2026-05-20). Recent changes include both packaging/build adjustments and dependency bumps.
  • Apparent cadence is moderately frequent during 2026 (roughly every 3 to 7 weeks between the 2026-05-20, 2026-06-19, and 2026-07-07 updates).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.0.2

    v2.0.2 primarily updates the build to ensure `style-to-object` is bundled into the UMD output, and bumps `style-to-object` from 2.0.0 to 2.0.2. The CI workflow and the TypeScript bundling configuration were also adjusted, but the release notes only document the UMD bundling and the `style-to-object` version bump.

  • v2.0.1

    v2.0.1 primarily updates the runtime dependency style-to-object from 1.0.14 to 2.0.0. The repository code itself shows no direct source changes in the provided diff, but the release also updates CI workflow actions and several dev dependencies.

  • v2.0.0

    v2.0.0 is mainly a build/tooling modernization plus a build output/packaging change. The documented breaking change is tsconfig build target moving from ES5 to ES6, but the code diff shows additional breaking changes around module exports and package entry points.

    BreakingFeatures
  • v1.1.21

    Release v1.1.21 makes a dependency update only. It bumps the core dependency style-to-object and updates the corresponding lockfile and package version, with no direct source code changes shown in the diff.

  • v1.1.20

    Release v1.1.20 primarily updates documentation. The README badge URLs were changed from badgen.net to shields.io, and the changelog reflects this documentation-only change.

  • v1.1.19

    v1.1.19 primarily updates the runtime dependency style-to-object from 1.0.11 to 1.0.12. The diff also updates CI workflow tooling (actions/setup-node) and bumps several development dependencies, none of which are mentioned in the release notes.

  • v1.1.18

    Release v1.1.18 is primarily a dependency update. The only change mentioned in the release notes is a bump of the runtime dependency style-to-object from 1.0.9 to 1.0.11.

  • v1.1.17

    Release v1.1.17 primarily updates the runtime dependency style-to-object from 1.0.8 to 1.0.9. In the repo itself, the diff also shows a broader toolchain and CI configuration refresh, including a Node version bump for local development and a major Codecov action upgrade.

  • v1.1.16

    v1.1.16 includes a targeted fix for how CSS custom property names are detected, specifically allowing underscores in the custom property regex. The codebase behavior change is small and covered by an added unit test, but the release does not mention accompanying developer tooling dependency updates.

  • v1.1.15

    v1.1.15 primarily updates the package dependency graph, most notably bumping the runtime dependency style-to-object. The diff shows no direct source code changes, only package metadata and lockfile updates.

  • v1.1.14

    v1.1.14 updates the project mainly by bumping the runtime dependency style-to-object from 1.0.6 to 1.0.7. The code diff shows no changes to the library source itself, but it does update several dev dependencies and the lockfile.

  • v1.1.13

    Release v1.1.13 has release notes that only mention a CI change to publish the npm package with provenance. The code diff shows no functional runtime changes to src/index.ts, but it includes substantial undocumented build, linting, and CI/tooling configuration updates.