
Security News
Node.js Moves Toward Stable TypeScript Support with Amaro 1.0
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
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 0 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.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.