A plugin for performing string replacements.
npm install --save autogit-plugin-replaceThis plugin uses the following options object:
{ paths: [], // Array of relative paths to the files that will be replaced replacements: [] // Array or arguments to pass to `String.prototype.replace` }Add this plugin to a command:
const replace = require ( 'autogit-plugin-replace' ); module.exports = { commands: { 'my-command': [ replace ({ paths: ['readme.md'], replacements: [ [/pulgin/g, 'plugin'], [/foo/g, 'bar'] ] }) ] } }MIT © Fabio Spampinato