
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
use-strict-cli
Advanced tools
Adds or removes "use strict" from all JavaScript files within directory
This command line tool can be used to add or remove 'use strict';
from all JavaScript files within a directory.
npm install use-strict-cli -g
Command line help:
use-strict [dir1] [dir2] [dirX] [--remove]
All *.js files found within given directories and
their sub-directories will be scanned.
Before running this command line tool it is recommended that you commit your current changes to source control or create a backup in case there are any undesirable changes.
Options:
--help: Help on using this command--remove: Remove 'use strict' statements--prefer: Preferred "use strict" statement (e.g. "use strict";)Add 'use strict'; to all files that do not already have it:
use-strict ./src
Remove 'use strict'; from all files that have it:
use-strict ./src --remove
You will be prompted to confirm operation before changes will be saved.
cd ~/myproject
use-strict ./src
Scanning following directories:
- /Users/johndoe/myproject/src
"use strict" statement will be added to the following files:
- server.js
- cluster.js
Continue? (yes) yes
FAQs
Adds or removes "use strict" from all JavaScript files within directory
We found that use-strict-cli 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.