Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

replace-in-file

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

replace-in-file - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

8

bin/cli.js

@@ -20,6 +20,10 @@ #!/usr/bin/env node

const to = argv._.shift();
const files = argv._.shift().split(',');
//Single star globs already get expanded in the command line
const files = argv._.reduce((files, file) => {
return files.concat(file.split(','));
}, []);
//Log
console.log(`Replacing '${from}' with '${to}' in ${files}`);
console.log(`Replacing '${from}' with '${to}'`);

@@ -26,0 +30,0 @@ //Create options

{
"name": "replace-in-file",
"version": "2.3.0",
"version": "2.3.1",
"description": "A simple utility to quickly replace text in one or more files.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/adamreisnz/replace-in-file#readme",

@@ -101,5 +101,7 @@ # Replace in file

The options `allowEmptyPaths` and `encoding` are supported in the CLI as well.
The options `allowEmptyPaths` and `encoding` are supported in the CLI.
In addition, the CLI supports the `verbose` option to list the changed files.
Multiple files or globs can be replaced by providing a comma separated list.
## License

@@ -106,0 +108,0 @@ (MIT License)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc