A tool to rename method names in JS files through Rocambole.
$ npm install rocambole-method-rename
// TL;DR, it returns a string
require( "rocambole-method-rename" )( src, "oldMethodName", "newMethodName" );
(function() {
var path = require( "path" ),
rmr = require( "rocambole-method-rename" ),
src = path.join( __dirname, "source.js" ).toString(),
result;
// Sends JS Contents
// Returns a string with the replaced content
result = rmr( src, "oldMethodName", "newMethodName" );
})();
Issues and PRs are very welcome!
Please write tests with new features.
Grunt!