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
- Host: GitHub
- URL: https://github.com/poode/file-string-replacer
- Owner: poode
- Created: 2020-01-12T18:02:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-19T00:14:06.000Z (almost 6 years ago)
- Last Synced: 2025-01-10T13:28:16.303Z (about 1 year ago)
- Topics: another, file, in, list, replace, string, stringlist, with
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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));
```