Skip to content
/ regex Public

Lightweight TypeScript utility for building, testing, and managing regular expressions with autocomplete-friendly patterns and flags.

License

dep-ts/regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@dep/regex 🔍

A lightweight TypeScript utility for building, testing, and managing regular expressions with autocomplete-friendly patterns and flags.

JSR version

Features ✨

  • 🧠 Type-safe patterns and flags with autocomplete support
  • ⚡ Lightweight RegExp wrapper with zero dependencies
  • 🧩 Predefined common regex patterns for faster development
  • 🧱 Extensible design for future regex helpers

Installation 📦

  • Deno:

    import { Regex, type Flags, type Patterns } from 'jsr:@dep/regex';
  • Node.js (18+) or Browsers:

    npx jsr add @dep/regex

    Then import as an ES module:

    import { Regex, type Flags, type Patterns } from '@dep/regex';

Usage 🎯

API 🧩

import { Regex } from '@dep/regex';

// Create a new regex with autocomplete-supported pattern and flags
const regex = new Regex('[a-z]+', 'gi');

console.log(regex.test('hello')); // true
console.log(regex.test('123')); // false

License 📄

MIT License – see LICENSE for details.

Author: Estarlin R (estarlincito.com)

About

Lightweight TypeScript utility for building, testing, and managing regular expressions with autocomplete-friendly patterns and flags.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published