0.2.0 • Published 10 years ago

file-str-replace v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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');