CLI Usage:
Hit replace-project-meta
at npm project root. It will dig defaults from your package.json
. After you've provided replacements, it will go through your LICENSE
, README.md
and package.json
and replaces the matches. It's a little rough but it works.
Library usage:
var replaceProjectMeta = require('replace-project-meta');
// originals = original values (i.e., from package.json)
// replacements = replacing values
// replacementPaths = files to operate against
replaceProjectMeta(originals, replacements, replacementPaths);
replace-project-meta is available under MIT. See LICENSE for more details.