@vect/rename

0.6.13 • Public • Published

@vect/renamer

Rename a function

npm version npm download monthly npm download total npm dependents npm license pp install size github commit last github commit total

Features

  • ES2015 syntax

Install

$ npm install @vect/rename

Usage

import { rename } from '@vect/rename'

const func = x => x
console.log(func.name) // func
rename(func, 'not-a-method')
console.log(func.name) // not-a-method

Meta

LICENSE (MIT)

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @vect/rename

      Weekly Downloads

      42

      Version

      0.6.13

      License

      MIT

      Unpacked Size

      4.6 kB

      Total Files

      5

      Last publish

      Collaborators

      • hoyeung