JSPM

Found 131 results for re

line-number

Get the line number for each regex match found in a string.

  • v0.1.0
  • 45.90
  • Published

mismatch

A JavaScript package to return captured groups of a regular expression as an object.

  • v1.2.0
  • 43.01
  • Published

doi-regex

Regular expression for matching DOIs

  • v0.1.17
  • 42.13
  • Published

match-requires

Match require statements in a string. Returns an array of matching require statements. Each match is an object with line number, variable name, and module name. Statements in code comments are ignored.

  • v2.0.1
  • 39.81
  • Published

strings

Easily replace and transform :props in strings.

  • v0.4.2
  • 39.08
  • Published

@esm2cjs/ip-regex

Regular expression for matching IP addresses (IPv4 & IPv6). This is a fork of sindresorhus/ip-regex, but with CommonJS support.

  • v5.0.0
  • 39.03
  • Published

regex-translator

Convert a Regular Expression from one flavour to another.

  • v0.2.8
  • 34.69
  • Published

ip-port-regex

Regular expression for matching IP:PORT addresses

  • v2.0.0
  • 34.19
  • Published

function-regex

Function regex. Regular expression for matching function parts. Expose match groups for function name, arguments and function body.

  • v1.0.2
  • 33.34
  • Published

escape-delims

Escape and un-escape delimiters in templates. Tested with Lo-Dash, underscore and Handlebars syntax, but could be used with other template engines/syntaxes as well. This is similar to the process used by Yeoman on escaped templates in generators.

  • v0.4.0
  • 32.93
  • Published

zero-width

remove zero-width and some other util about space

  • v1.0.29
  • 29.89
  • Published

execall2

Find multiple RegExp matches in a string

  • v2.0.26
  • 29.23
  • Published

cleanup-coverage-code

Cleanup ugly code added by code coverage tools during the test process. Like this one `__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;`.

  • v1.0.3
  • 28.77
  • Published

coverage-code-regex

Regular expression (regex) for matching ugly code that coverage tools add during the test process. Like this one `__cov_Ejgcx$XN18CSfmeWn$f7vQ.f['2']++;`

  • v1.0.2
  • 28.60
  • Published

recoo

Regular expression helper

  • v1.0.8
  • 25.34
  • Published

relib

A regular expression library for node.js

  • v0.2.1
  • 24.98
  • Published

regex-box

Common regular expressions

  • v0.2.1
  • 24.33
  • Published

tieba-harmony

百度貼吧 關鍵字 和諧/反和諧 unescape / escape tieba harmony keywords

  • v2.0.41
  • 21.41
  • Published

node-re

Quickly rename files using NodeJS

  • v1.0.5
  • 17.65
  • Published

novel-text

node-novel core module

  • v1.1.45
  • 15.11
  • Published

bind-context

Bind context to a function and preserves her name. Can be used to change name of a function. The toString also works correctly.

  • v2.0.2
  • 12.81
  • Published

@zerda.js/runtime

Zerda.js Runtime Environment | Cross-platform | Modular | Wide GPU support

  • v0.5.3
  • 11.87
  • Published

has-ansi-cli

Check if a string has ANSI escape codes

  • v4.1.1
  • 11.05
  • Published

strings-escape

Remove special characters in RegExp

  • v1.0.4
  • 10.93
  • Published

srl

Simple Regex Language

  • v0.2.3
  • 10.75
  • Published

files-filters

Functions for fantastically fast file filtering, and more things that start with 'f'.

  • v0.1.2
  • 10.37
  • Published

extract-range

Extract a string in the given range (e.g. from line X to line Y).

  • v0.1.0
  • 9.28
  • Published

@syntropiq/py-regex

Python-compatible regular expressions for TypeScript/JavaScript, mirroring Python's re/regex API.

  • v1.0.0
  • 8.55
  • Published

sort-package-json2

Sort an Object or package.json based on the well-known package.json keys

  • v0.0.3
  • 8.55
  • Published

xregexify

A require/browserify plug-in for free-space regular expression files.

  • v1.0.3
  • 8.43
  • Published

regexp2

Regex Parser (fork from regexp)

  • v1.2.1
  • 8.43
  • Published

js-restructure

This package provides a nifty way to match against regular expressions. Construct objects and match against regular expressions.

  • v1.1.2
  • 8.16
  • Published

build-regex-group

Build regular expression groups from arrays of strings. Useful when you need to automatically generate RegExp patterns.

  • v0.1.0
  • 7.96
  • Published

typed-re

Template literal types for regular expression capturing groups

  • v1.1.0
  • 7.50
  • Published

match-extension

Return `true` if a file extension matches the given string, array of strings, or RegExp pattern.

  • v0.2.1
  • 6.47
  • Published

react-component-updater

Forcibly re-render a component from anywhere through React hooks.

  • v1.0.7
  • 5.88
  • Published

rechain

Regex Chain - A new method for regular expressions

  • v1.0.8
  • 5.71
  • Published

replace-nth

Replace only specific occurrences of a string. e.g. if the string exists 10 times, you can replace, say, the 3rd and 8th occurrences only, etc. Returns a new string with nth specific matches of a pattern replaced by a replacement. The pattern can be a str

  • v0.2.1
  • 5.28
  • Published

map-requires

Match require statements in a glob of files. Returns an an object files, each with an array of objects describing each require statement found. Each require statement object has a line number, variable name, and module name. Statements in code comments ar

  • v0.1.0
  • 5.28
  • Published

reginald

Clone and modify a RegExp instance, including removing, prepending, appending & replacing the source

  • v1.0.0
  • 5.26
  • Published

ran_new

for practice

    • v1.1.0
    • 4.44
    • Published

    @puzzle_w/ansi-regex

    Regular expression for matching ANSI escape codes

      • v1.0.0
      • 4.27
      • Published

      regex-format

      Format regex with string substitutions

      • v0.3.2
      • 4.22
      • Published

      re.js

      RegExp API for Humans!

      • v1.1.0
      • 3.98
      • Published

      rexs

      REXS is a language for creating regular expressions. This library can compile REXS to a regular expression.

      • v1.0.3
      • 2.50
      • Published

      @syntropiq/pyrex

      A TypeScript library providing a Python-like regex interface with automatic backend selection

      • v0.1.0
      • 2.34
      • Published

      animinecessitatibus

      Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.

      • v1.2.0
      • 0.00
      • Published

      re-extract

      A simple package to extract multiple named-matches from a larger text via regular expressions.

      • v0.1.0
      • 0.00
      • Published

      create-rescript-config

      A simple CLI utility to generate the required files to get you up and running with [ReScript](https://rescript-lang.org/).

      • v1.1.0
      • 0.00
      • Published