@ject/rename

Rename a function

Usage no npm install needed!

<script type="module">
  import jectRename from 'https://cdn.skypack.dev/@ject/rename';
</script>

README

@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)