Socket
Socket
Sign inDemoInstall

clean-regexp-cli

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    clean-regexp-cli

Clean up regular expressions from the command line


Version published
Weekly downloads
1
Maintainers
1
Install size
206 kB
Created
Weekly downloads
 

Readme

Source

clean-regexp-cli

Build Status

Clean up regular expressions from the command line.

Requires Node.js 8+.

Installation

$ npm install -g clean-regexp-cli

Usage

$ crgx '[0-9]'
\d

$ crgx '/[0-9]/'
/\d/

$ crgx '[^0-9]'
\D

$ crgx '[a-zA-Z0-9_]'
\w

$ crgx '/[a-z0-9_]/i'
/\w/i

$ crgx '[^a-zA-Z0-9_]'
\W

$ crgx '/[^a-z0-9_]/i'
/\W/i

$ crgx '[a-zA-Z\d_]'
\w

$ crgx '[^a-zA-Z\d_]'
\W

$ crgx '[0-9]+\.[a-zA-Z0-9_]?' '/[0-9]+\.[a-z0-9_]?/i'
\d+\.\w?
/\d+\.\w?/i

Internals

Licence

MIT

Keywords

FAQs

Last updated on 19 May 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc