npm.io
0.2.2 • Published 12 years ago

rocambole-method-rename

Licence
MIT
Version
0.2.2
Deps
1
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

Rocambole Method Rename

A tool to rename method names in JS files through Rocambole.

Build Status

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!

Keywords