New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

file-content-update

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-content-update - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "file-content-update",
"version": "1.0.1",
"version": "1.0.2",
"description": "Change the contents of multiple files ",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,1 +0,22 @@

# file-content-update
## file-content-update
Updates the content inside a file or multiple files at once with newer content while removing the old content.
### Installation
---
```npm install file-content-update```
### Functions
---
#### updateFiles(filespath, original_content, updated_content)
To update the content of files.
##### listFiles(filepath)
List the files in a particular directory.
### Usage
```
const file_update = require('file-content-update');
file_update.updateFiles('public/**/*.html', '</body>', '<script src="./app.js"></script></body>')
```
Appends the script file to all the html files in the public folder.
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