Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/yorkie/name-your-function
- Owner: yorkie
- Created: 2018-06-08T13:13:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-13T04:44:21.000Z (over 5 years ago)
- Last Synced: 2024-11-02T21:02:46.877Z (10 days ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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