Newfangled Package Modernizer

    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

    Keywords

    Install

    npm i place

    DownloadsWeekly Downloads

    42

    Version

    1.2.1

    License

    MIT

    Last publish

    Collaborators

    • coderaiser