npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

redress

v2.0.1

Published

Batch or single use renaming utility.

Downloads

6

Readme

redress

A cli renaming tool written in node. Why not?

Installation

To install:

npm install redress -g

This tool prefers the global flag.

Usage

Redress commands consist of a mode flag and one or more file names.

Redress includes a batch renaming mode and a single file renaming mode. I am aware that there are native ways to rename single files. Use those if you want, the single file mode was more of a tacked on addition.

You include the "-m" flag along with either a "b" or "s" to specify the usage mode.

redress -m b

or

redress -m s

In either mode, you must run the command from the location of the file(s) you wish to rename.

Batch Mode

In batch mode you include the file name format you would like the files to be renamed as. Include the wildcard character "!".

Example:

A directory containing files like so:

randomfile.jpg
evenmorerandom.jpg
124144123.jpg
1023003010.jpg

Could be renamed using redress by navigating to the directory and using the following command:

redress -m b -f JuneVacation!

The result would be the following:

JuneVacation1.jpg
JuneVacation2.jpg
JuneVacation3.jpg
JuneVacation4.jpg

Single File Mode

In single file mode, you include the target filename and the filename to rename as.

Example:

redress -m s -t targetFile.html -f newFileName.html

Supported Flags

The following flags are supported by redress.

-m "This flag tells redress what mode you are using. Mandatory flag.
Expects either "b" for batch mode, or "s" for single file mode."

-f "This flag should be followed by the string you wish to rename the file(s).
If in batch mode also include the wildcard character "!".
If in single file mode, the filename must include a file extension."
Example: -f example! in batch mode, or -f example.txt in single file mode.

-t "This flag is only used in single file mode, and specifies the target
file for renaming including the file extension."
Example: -t example.txt