Skip to content

mrzmyr/file-str-replace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-str-replace Build Status

standalone module to replace a string in a file

Install

$ npm install --save-dev file-str-replace

Usage

var fileStr = require('file-str-replace');

fileStr.replace('example.txt', /[0-9]/g, '<3', function (newFileContent) {
  // console.log(newFileContent);
});

var newFileContent = fileStr.replaceSync('example.txt', /[0-9]/g, '<3');

About

✂️ standalone module to replace a string in a file

Resources

License

Stars

Watchers

Forks

Packages

No packages published