
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.
replace-with-dictionary
Advanced tools
Replace text in a file using a dictionary. You can replace in not only a single file but also multiple files at once using a list of file paths.
$ npm install replace-with-dictionary
$ replace-with-dictionary -d <path_to_dictionary>/<your_dictionary>.js -f <path_to_your_target_file>
$ replace-with-dictionary -d <path_to_dictionary>/<your_dictionary>.js -l <path_to_filelist>/<your_filelist>.txt
-d, --dict Defines a dictionary file
-f, --file Defines a target file for replacement
-l, --list Defines a list of target files for replacement
JavaScript file. You write a pair of words with array for replacement. You can use a regular expression.
module.exports = [
['foo', 'bar'],
['<li(.*)>foo</li>', '<li$1>bar</li>'],
['(<h\\d{1}.*>)見出し(</h(\\d{1})>)', '$1heading$2'],
];
Text file. You write a file path each lines.
/Users/foo/1.html
/Users/foo/2.html
/Users/foo/3.html
FAQs
Replace words with dictionary.
We found that replace-with-dictionary 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.