npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

css-to-and-from-react

v0.7.0

Published

A small util to convert between CSS and React styles object

Readme

css-to-and-from-react

NPM GitHub Workflow Status Known Vulnerabilities

README

TL;DR

CSS <-> React (in-line style) here: https://htbkoo.github.io/CssToAndFromReact/

What is this repository for?

  • This repo is a fork of staxmanade/CssToReact
  • The idea is great but I believe transformation from React Style back to CSS would also be useful
  • So this repo is an attempt to add bi-directional transformation between React Styles <-> CSS
  • In short these changes are added on top of the original repo
    • [x] updated .gitignore (because IntelliJ IDEA is used so some of the config files should be ignored as well)
    • [x] (Just personal preference) migrated to yarn / npm
    • [x] (Just personal preference) migrated to TypeScript
    • [x] Added automated test coverage
    • [x] Added functionality to transform from React back to CSS
    • [x] Update description in the page
    • [ ] Full (at least enough) automated test coverage
    • [ ] More refactoring (more related to personal style)
  • An instance would be deployed to GitHub Page: https://htbkoo.github.io/CssToAndFromReact/

How do I get set up?

  • Summary of set up: yarn / npm install to download dependencies and the project is good to go.
  • Configuration: N/A
  • Dependencies: Listed at package.json
  • Database configuration: N/A
  • How to run tests: yarn run test / npm run test
    • run unit tests only: yarn run test:unit / npm run test:unit
  • Deployment instructions:
    • Currently the application is only deployed to GitHub page, with the source sitting in the docs/ folder under master branch
    • To update the GitHub page, do the following:
      1. update the source code under src/ or public/
      2. yarn run ghpages:publish / npm run ghpages:publish
      3. git add everything under docs/
      4. git commit
      5. git push
  • How to start server: yarn run start / npm run start

Contribution guidelines

  • Writing tests:
    • All tests are currently placed under src/test/
      • A small naming convention to 1) make it easier to run only unit tests and 2) allow tests navigation in IntelliJ:
        • Unit tests name pattern: src.test.ts(x)
        • Other tests (e.g. integration, acceptance) name pattern: src.test-type.spec.ts(x)
    • Libraries / Frameworks used: jest (bundled in react-scripts-ts) + chai + enzyme
    • All the tests are currently written in TypeScript but adding JavaScript tests should also work fine
  • Code review: N/A
  • Other guidelines: N/A

Who do I talk to?

  • Repo owner or admin: me (htbkoo)
  • Other community or team contact: N/A

Acknowledgement