0.2.2 • Published 10 years ago
rocambole-method-rename v0.2.2
Rocambole Method Rename
A tool to rename method names in JS files through Rocambole.
Instalation:
$ npm install rocambole-method-rename
Usage example
// TL;DR, it returns a string
require( "rocambole-method-rename" )( src, "oldMethodName", "newMethodName" );
Other:
(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" );
})();
Contributing
Issues and PRs are very welcome!
Please write tests with new features.
Grunt!