
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
renamer-index-dir
Advanced tools
Replaces the {{index}} token, resetting the counter for each folder visited.
This is a renamer replace chain plugin - see this tutorial to learn how to use renamer plugins.
Replaces the {{index}}
token (like the built-in renamer behaviour) but resets the counter for each folder visited.
In the example below, Windows users should use double instead of single quotes. Remove the --dry-run
flag to rename the files on disk.
$ npm install -g renamer renamer-index-dir
$ tree
.
āāā folder1
āĀ Ā āāā one
āĀ Ā āāā two
āāā folder2
āĀ Ā āāā one
āĀ Ā āāā two
āāā one
āāā two
2 directories, 6 files
$ renamer --chain find-replace --chain renamer-index-dir --find '/$/' --replace '{{index}}' --dry-run */*
āļø folder1/one ā folder1/one1
āļø folder1/two ā folder1/two2
āļø folder2/one ā folder2/one1
āļø folder2/two ā folder2/two2
$ tree
.
āāā folder1
āĀ Ā āāā one1
āĀ Ā āāā two2
āāā folder2
āĀ Ā āāā one1
āĀ Ā āāā two2
āāā one
āāā two
2 directories, 6 files
Ā© 2018-21 Lloyd Brookes 75pound@gmail.com.
FAQs
Replaces the {{index}} token, resetting the counter for each folder visited.
The npm package renamer-index-dir receives a total of 5 weekly downloads. As such, renamer-index-dir popularity was classified as not popular.
We found that renamer-index-dir demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Ā It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.