How to use rename-fn - 1 common examples

To help you get started, we’ve selected a few rename-fn examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ehmicky / gulp-execa / src / task.js View on Github external
export const task = function(input, opts) {
  try {
    validateInput(input)
    const optsA = parseOpts({ opts })

    const gulpTask = execCommand.bind(null, input, optsA)

    // Log the command and arguments as the task name.
    // This does not work when this is the top-level task.
    renameFn(gulpTask, input)

    return gulpTask
  } catch (error) {
    handleTask(error)
  }
}

rename-fn

Rename a function

MIT
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis

Popular rename-fn functions