0.2.2 • Published 10 years ago

rocambole-method-rename v0.2.2

Weekly downloads
1
License
MIT
Repository
-
Last release
10 years ago

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!

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago

0.0.0

10 years ago