npm · npm:to-regex
to-regex active
Generate a regex from a string or array of strings.
The latest stable version of to-regex is 3.0.2, published on 2018-02-24. Verified by Vigia on 2026-11-12.
| Latest stable version | 3.0.2 |
|---|---|
| Published | 2018-02-24 08:29:32 UTC |
| Install | npm install to-regex@latest |
| Requires (engines) | {"node":">=0.10.0"} |
| Peer dependencies | — |
| Dist-tags | latest: 3.0.2 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 14:32:19 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Ask your AI assistant to check this
AI models are trained up to a date, so they can be wrong about versions, deprecations and vulnerabilities. Paste this into Claude, ChatGPT, Perplexity or Cursor and it will answer with the verified data on this page:
Before answering about the npm package "to-regex", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/npm/to-regex . For my whole project use https://vigia.coredls.cloud/context
Using an AI coding agent every day? Connect Vigia once and it checks this by itself.
Maintenance
| Activity | dormant |
|---|---|
| Last stable release | 2018-02-24 08:29:32 UTC · 3183 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 8 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
3.0.2 | 2018-02-24 08:29:32 UTC |
3.0.1 | 2016-10-17 02:15:17 UTC |
3.0.0 | 2016-10-17 02:09:03 UTC |
2.1.0 | 2016-10-06 11:52:03 UTC |
2.0.0 | 2016-10-06 10:24:10 UTC |
1.0.0 | 2016-10-04 06:31:13 UTC |
0.1.1 | 2016-09-27 03:56:19 UTC |
0.1.0 | 2016-09-27 02:38:27 UTC |
Showing the 8 most recent of 8 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
node 16 | 3.0.2 |
node 18 | 3.0.2 |
node 20 | 3.0.2 |
node 22 | 3.0.2 |
node 24 | 3.0.2 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of to-regex?
The latest stable version of to-regex is 3.0.2, published on 2018-02-24. Verified by Vigia on 2026-11-12.
How do I install the latest version of to-regex?
Run npm install to-regex@latest. The latest stable version is 3.0.2 (verified 2026-11-12).
Is to-regex deprecated?
No. to-regex is not marked as deprecated in the registry.
Which Node.js version does to-regex require?
to-regex 3.0.2 declares this requirement: {"node":">=0.10.0"}.
Does to-regex 3.0.2 have known vulnerabilities?
No known advisories affect to-regex 3.0.2 according to the data Vigia checks.
Is to-regex still maintained?
to-regex published 0 stable releases in the last 12 months; the most recent was 3183 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- @google/genai
- public-encrypt
- @esbuild/netbsd-x64
- @tiptap/extension-ordered-list
- object-copy
- @esbuild/linux-riscv64
- @sentry/utils
- @tiptap/extension-blockquote
- multer
- is-network-error
- @slack/types
- @graphql-codegen/visitor-plugin-common
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/to-regex) [](https://vigia.coredls.cloud/npm/to-regex) [](https://vigia.coredls.cloud/npm/to-regex)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/to-regex
GET https://vigia.coredls.cloud/v1/packages/npm/to-regex/versions/{version}