Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yorkie/name-your-function

Just rename your anonymous function in ES6.
https://github.com/yorkie/name-your-function

Last synced: 5 days ago
JSON representation

Just rename your anonymous function in ES6.

Awesome Lists containing this project

README

        

# name-your-function

Just rename your anonymous function in ES6.

### Installation

```sh
$ npm install name-your-function -g
```

### Usage

```sh
$ name-your-function ./src/js/
```

The above command would search for the `.js` files by the given path, and replace
the anonymous function with a random name:

```
{filename}_{random}
```

For example, in a file `buffer.js`, and an anonymous will be transpiled to:

```
buffer_9fe692
```

### License

MIT