Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rexname

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rexname

Utility to rename files/folders using regular expressions.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

rexname

NPM utility module to rename files using regular expressions.

Installation

Install globally via NPM

npm install -g rexname

Usage

rexname <search> <replace>
  • search: a string or regular expression to match files on. e.g. .txt or '/(.*)\.\d{4}/i' (Use quotes when for special characters or spaces)
  • replace: a string used to replace file names. Use $1 $2... for matched text. e.g. 'new $1.$2'

Example

filenames

file1_201208.txt
file2_201209.txt

rexname command

rexname '/file(\d+)_(\d{4})(\d{2}).txt/i' '$3-$2-module-$1.js'

result

2012-08-module-1.js
2012-09-module-2.js

Keywords

FAQs

Package last updated on 18 Aug 2012

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc