Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adalinesimonian/clean-regexp-cli
Clean up regular expressions from the command line.
https://github.com/adalinesimonian/clean-regexp-cli
clean cleaner cleanup cli command-line command-line-tool node-js nodejs regex regular-expression regular-expressions tool
Last synced: 27 days ago
JSON representation
Clean up regular expressions from the command line.
- Host: GitHub
- URL: https://github.com/adalinesimonian/clean-regexp-cli
- Owner: adalinesimonian
- License: mit
- Created: 2017-08-12T03:30:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:59:04.000Z (about 1 year ago)
- Last Synced: 2024-05-01T15:07:55.046Z (9 months ago)
- Topics: clean, cleaner, cleanup, cli, command-line, command-line-tool, node-js, nodejs, regex, regular-expression, regular-expressions, tool
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/clean-regexp-cli
- Size: 829 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clean-regexp-cli
[![Build Status](https://travis-ci.org/adalinesimonian/clean-regexp-cli.svg?branch=master)](https://travis-ci.org/adalinesimonian/clean-regexp-cli)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
- [clean-regexp](https://github.com/SamVerschueren/clean-regexp)
- [ukaz](https://github.com/adalinesimonian/ukaz)## Licence
MIT