# @ject/rename

> Rename a function

Latest version **0.1.2** (published 2025-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ject/rename
pnpm add @ject/rename
yarn add @ject/rename
bun add @ject/rename
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2025-02-26 |
| First published | 2020-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22.0.0 |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Hoyeung Wong |
| Maintainers | hoyeung |
| Keywords | ject, rename, function |

## Links

- npm: https://www.npmjs.com/package/@ject/rename
- Repository: https://github.com/hoyeungw/vect
- Homepage: https://github.com/hoyeungw/vect#readme
- Issues: https://github.com/hoyeungw/vect
- npm.io page: https://npm.io/package/@ject/rename

## Recent versions

- 0.1.2 (latest) — 2025-02-26
- 0.1.1 — 2024-11-12
- 0.1.0 — 2024-10-29
- 0.0.17 — 2022-04-26
- 0.0.16 — 2021-06-22
- 0.0.15 — 2021-06-22
- 0.0.14 — 2021-06-21
- 0.0.13 — 2021-06-21
- 0.0.12 — 2021-05-17
- 0.0.11 — 2021-04-15
- 0.0.10 — 2021-04-15
- 0.0.9 — 2021-04-11
- 0.0.7 — 2021-04-11
- 0.0.6 — 2020-07-23

## README

## @vect/renamer
Rename a function

[![npm version][badge-npm-version]][url-npm]
[![npm download monthly][badge-npm-download-monthly]][url-npm]
[![npm download total][badge-npm-download-total]][url-npm]
[![npm dependents][badge-npm-dependents]][url-github]
[![npm license][badge-npm-license]][url-npm]
[![pp install size][badge-pp-install-size]][url-pp]
[![github commit last][badge-github-last-commit]][url-github]
[![github commit total][badge-github-commit-count]][url-github]

[//]: <> (Shields)
[badge-npm-version]: https://flat.badgen.net/npm/v/@ject/rename
[badge-npm-download-monthly]: https://flat.badgen.net/npm/dm/@ject/rename
[badge-npm-download-total]:https://flat.badgen.net/npm/dt/@ject/rename
[badge-npm-dependents]: https://flat.badgen.net/npm/dependents/@ject/rename
[badge-npm-license]: https://flat.badgen.net/npm/license/@ject/rename
[badge-pp-install-size]: https://flat.badgen.net/packagephobia/install/@ject/rename
[badge-github-last-commit]: https://flat.badgen.net/github/last-commit/hoyeungw/vect
[badge-github-commit-count]: https://flat.badgen.net/github/commits/hoyeungw/vect

[//]: <> (Link)
[url-npm]: https://npmjs.org/package/@ject/rename
[url-pp]: https://packagephobia.now.sh/result?p=@ject/rename
[url-github]: https://github.com/hoyeungw/vect

## Features

- Rename a function

## Install
```console
$ npm install @ject/rename
```

## Usage
```js
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)](LICENSE)

---
_Source: https://npm.io/package/@ject/rename · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
