1.0.0 • Published 6 years ago

name-your-function v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

name-your-function

Just rename your anonymous function in ES6.

Installation

$ npm install name-your-function -g

Usage

$ 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