npm.io
0.1.2 • Published 1 year ago

@ject/rename

Licence
MIT
Version
0.1.2
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
5

@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

  • Rename a function

Install

$ npm install @ject/rename

Usage

import { rename } from '@ject/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)

Keywords