0.3.2 • Published 8 years ago

getfunctionname v0.3.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

getfunctionname

Get the readable name of a function.

Installation

$ npm install getfunctionname

Usage

var getFunctionName = require('getfunctionname');

getFunctionName(function someFunction () { }); // 'someFunction'
getFunctionName(function ANOTHER_FUNCTION () { }); // 'ANOTHER_FUNCTION'

getFunctionName(() => { }); // 'anonymous'
getFunctionName(function () { }); // 'anonymous'

License

MIT

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago