place

1.2.1 • Public • Published

Place License NPM version Dependency Status Build Status Coverage Status

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.1
    8
    • latest

Version History

Package Sidebar

Install

npm i place

Weekly Downloads

9

Version

1.2.1

License

MIT

Last publish

Collaborators

  • coderaiser