An open API service indexing awesome lists of open source software.

https://github.com/poode/file-string-replacer

replace string list in file with another string list
https://github.com/poode/file-string-replacer

another file in list replace string stringlist with

Last synced: 11 months ago
JSON representation

replace string list in file with another string list

Awesome Lists containing this project

README

          

# Replace String List With Another String List In Same File

## Usage

```
const { replaceStrList } = require('replace-string-in-file')

strFromList = [
'اهلا بك , هل تريد طلب ما ؟',
'Hi , Do you want to make order ?',
];

strToList = [
'replaced string عربي كمان',
'replaced string عربي كمان',
];

replaceStrList({
filePath: '/tmp/file.rive',
strFromList,
strToList,
}).catch(e => console.log(e));

```