UNPKG

rename-function-calls

Version:

Renames functions calls, but leaves function definitions unchanged.

24 lines (19 loc) 333 B
// { "from": "xxx", "to": "x" } 'use strict'; function x() { } function y() { } function z() { } var go = module.exports = function () { xxx(); y(); z(); function nested() { return xxx(); function oneMoreLevel () { xxx(); z(); xxx(); } } function nestedExpression() { return 1 + xxx(); } };