15270821319 4e5c5d37f9 初步设计数据库,注册登录 10 ay önce
..
.gitattributes 4e5c5d37f9 初步设计数据库,注册登录 10 ay önce
.travis.yml 4e5c5d37f9 初步设计数据库,注册登录 10 ay önce
LICENSE 4e5c5d37f9 初步设计数据库,注册登录 10 ay önce
README.md 4e5c5d37f9 初步设计数据库,注册登录 10 ay önce
index.js 4e5c5d37f9 初步设计数据库,注册登录 10 ay önce
package.json 4e5c5d37f9 初步设计数据库,注册登录 10 ay önce
test.js 4e5c5d37f9 初步设计数据库,注册登录 10 ay önce

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