npm 包搜索

搜索 npm 上的 JavaScript 依赖包

搜索 "to-regex" 的结果(共 8 个)
glob-to-regexp

Convert globs to regular expressions

BSD-2-Clause
path-match

wrapper around path-to-regexp for easy route parameters

MIT
glob-to-regex.js

Transform GLOB patterns to JavaScript regular expressions for fast file path matching.

Apache-2.0
to-regex

Generate a regex from a string or array of strings.

MIT
to-regex-range

Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.

MIT
regexparam

A tiny (399B) utility that converts route patterns into RegExp. Limited alternative to `path-to-regexp` 🙇‍

MIT
@types/glob-to-regexp

TypeScript definitions for glob-to-regexp

MIT
@egoist/path-parser

A robust and light-weight path-to-regexp alternative

MIT