
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
Renaming files in ascending order
A package helps renaming files in an ascending order. Each renamed file will contain its own index starting from 1.
It can be used as a dependency or as a CLI directly from your favorite terminal.
# Install it as a dependency in your project
npm install --save asort
# Import the package via 'require'
const { asort } = require('asort'); # OR const asort = require('asort').default;
# Import the package with ES module
import asort from 'asort';
You can choose to either use the CLI directly with npx or to install the CLI globally with NPM.
* Please note that as of npx is bundled with NPM as of the version of 5.2.0.
# Use CLI with npx
$ npx asort <command>
# Install globally via NPM
$ npm install -g asort
Show help via -h or --help.
# asort --help
$ asort -h
Show version via -v or --version.
# asort --version
$ asort -v
Rename files
# Rename files in current directory
$ asort ./
# Rename files with defined directory path
$ asort ~/my-videos/
# Rename files with defined language for sorting files before renaming
$ asort ~/my-videos/ -l "ja-JP"
# Rename files with RegExp + replacer function
$ asort ~/my-videos/ -r "/^(\\S+)[\\s\\S]*?(\\d*)\\.(\\w+)\$/i" -p "\$1 - \$2.\$3"
dirname <string> Path to the directory that contains files to be renamed.lang <string> Language of the files to be renamed. This is needed for sorting the files before renaming. Defaults to en-US.regex <string|Regex> Custom RegExp to filter files that need to be renamed.replacer <string|Function> Custom replacer string or function when renaming the files.MIT License © Rong Sen Ng
FAQs
Renaming files in ascending order
We found that asort 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
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.