Zhouyiping 5a7c95461a first commit 3 dias atrás
..
index.js 5a7c95461a first commit 3 dias atrás
license 5a7c95461a first commit 3 dias atrás
package.json 5a7c95461a first commit 3 dias atrás
readme.md 5a7c95461a first commit 3 dias atrás

readme.md

fn-name Build Status

Get the name of a named function

There is a non-standard name property on functions, but it's not supported in all browsers.
This module tries that property then falls back to extracting the name from the function source.

Install

$ npm install --save fn-name

Usage

fnName(function foo() {});
//=> foo

License

MIT © Sindre Sorhus