place
v1.2.1
Published
replace data in file
Downloads
32
Readme
Place
Replace file data in file.
Install
npm i place --save
How to use?
var place = require('place');
place('README.md', 'one', 'two', function(error) {
if (error)
console.error(error.message);
});
place('README.md', /one/, 'two', function(error) {
if (error)
console.error(error.message);
});
Global
place
could be used as global when install with -g
flag:
npm i place -g
And used this way:
Usage: place [filename] [from] [to]
Environments
In old node.js
environments that supports es5
only, place
could be used with:
const place = require('place/legacy');
Global could be used as place-legacy
.
License
MIT