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

regexies

v1.5.0

Published

Ready to use JavaScript regex you need!

Readme

Regexies

The library includes a list of popular regex functions for every project usage. You can use special builder functions to create your own regexes.

Please let us know if you see any bugs or need improvements to existing functions. Thank you!

Install

Install using npm:

npm i regexies

Import

Node.js

const regexies = require('regexies');
regexies.isPassword('sometestpassword');
// or
const isPassword = require('regexies').isPassword;

ES6

import regexies from 'regexies';
regexies.isPassword('sometestpassword');
// or
import { isPassword } from 'regexies';

Optimization

Import only functions you need to reduce bundle size.

// Node.js
const isPassword = require('regexies/src/isPassword');
// ES6
import isPassword from 'regexies/src/isPassword';

Use with babel-plugin-import:

{
  "libraryName": "regexies",
  "libraryDirectory": "src",
}

Documentation

Visit Regexies documentation on Github Pages to get full information about all available functions with examples and test tools.

Build your own regex using these functions:

  • is
  • createIs - create your own regex using our regex constructor

Escape special characters using these functions:

Verify strings using these functions:

escape

Use this function to escape special characters that should be escaped in Regex. The function decides which helper function to use escapeShort or escapeLong depends on length of the string.

/**
 * @param  {String} string String to escape
 */
escape(string) // .^$*+?()[]{}\|/- to \.\^\$\*\+\?\(\)\[\]\{\}\\\|\/\-

escapeShort and escapeLong

Use escapeShort to escape strings with length <= 60 and escapeLong for strings longer than 60 symbols.

/**
 * @param  {String} string String to escape
 */
escapeShort(string) // custom function with for loop
escapeLong(string)  // string.replace(/[\.\^\$\*\+\?\(\)\[\]\{\}\\\|\/\-]/g, '\\$&');

There is no big difference if you want to escape single string, but if your task requires hundrets of iteration then the impact could be significant. Let's take a look at table with performance results:
| String length | Iterations | escapeShort | escapeLong | | ------------- | ------------- | ------------- | ------------- | | 20 | 10k | 7ms | 7ms | | 20 | 100k | 30ms | 56ms | | 50 | 10k | 7ms | 10ms | | 50 | 100k | 73ms | 100ms | | 100 | 10k | 13ms | 11ms | | 100 | 100k | 133ms | 102ms | | 1000 | 10k | 134ms | 73ms | | 1000 | 100k | 1315ms | 732ms |

Tests

Tests are not included in regexies library if you install it through npm. Please clone git repo of the library to find tests.