刘琳琳 97c35fdf0d 航汇HHArome小程序容器演示 2 luni în urmă
..
.gitattributes 97c35fdf0d 航汇HHArome小程序容器演示 2 luni în urmă
.travis.yml 97c35fdf0d 航汇HHArome小程序容器演示 2 luni în urmă
LICENSE 97c35fdf0d 航汇HHArome小程序容器演示 2 luni în urmă
README.md 97c35fdf0d 航汇HHArome小程序容器演示 2 luni în urmă
index.js 97c35fdf0d 航汇HHArome小程序容器演示 2 luni în urmă
package.json 97c35fdf0d 航汇HHArome小程序容器演示 2 luni în urmă
test.js 97c35fdf0d 航汇HHArome小程序容器演示 2 luni în urmă

README.md

fn.name

Version npmBuild StatusDependenciesCoverage Status

Extract the name of a given function. Nothing more than that.

Installation

This module is compatible with Browserify and Node.js and can be installed using:

npm install --save fn.name

Usage

Using this module is super simple, it exposes the function directly on the exports so it can be required as followed:

'use strict';

var name = require('fn.name');

Now that we have the name function we can pass it functions:

console.log(name(function foo() {})) // foo

And that's it folks!

License

MIT