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 🙏

© 2024 – Pkg Stats / Ryan Hefner

reggex

v0.5.2

Published

A TypeScript library that provides a programmatic and human readable way to create strongly-typed regular expressions

Downloads

76

Readme

NPM version NPM downloads Github Actions Codecov Bundlephobia

A programmatic and human-readable API to create strongly-typed regular expressions in Typescript.

📖 Table of Contents

⚡ Features

This library is still under active development. Once the API becomes more stable, the README will be updated with more useful documentation.

🧑‍💻 Development

This project is open to any contributions via pull requests! Here are some steps to help with any contributions you would like to make:

  1. Clone the repo (git clone [email protected]:pcbowers/reggex.git)
  2. Install the dependencies using pnpm (pnpm install)
  3. Run tests interactively using vitest while making changes (pnpm run dev)
  4. Ensure all the lint tests pass using prettier and eslint (pnpm run lint)
  5. Ensure the package can be built using tsup (pnpm run build)
  6. Use changesets to describe any release-dependent changes (pnpm run changeset)
  7. Commit and Push your changes, ensuring any CI workflows pass
  8. Create a Pull Request to begin the review process and get your changes merged!

Tired of running all these commands? Use pnpm run ci to run the tests, lint, build, and export checks all at once!

More details for the curious:

  • This package relies heavily on tests. For any developer out there that hasn't contributed to projects using tests, don't fret! This package prioritizes developer experience, so tests are fast and easy to get up and running. If you have questions, don't hesitate to reach out! Code coverage is used as the metric in this project to ensure tests are being written.
  • If you don't have auto-format on save setup in your editor, linting will fail. I would highly suggest enabling this feature in your editor. If you don't want to do this, run pnpm prettier --write . before a commit to ensure any CI workflows pass.
  • This project relies on the @changesets/cli to version and publish the package. If you are making a change that is not CI/Document related, add a changeset for each change you make to help document the new features/bug fixes/breaking changes that are being made.

If you've never contributed to open source before and have some questions, reach out via an issue and I'd be happy to guide you to some resources or answer your questions!

💡 Inspiration

This library was inspired by Super Expressive and magic-regexp.