get-function-name
Get name of a function
Last updated 10 years ago by sorensen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install get-function-name 
SYNC missed versions from official npm registry.

get-function-name

Get the name of a function

Install

With npm

npm install get-function-name

Usage

Node.js

var getFunctionName = require('get-function-name')

var foo = function() {}
function bar() {}

getFunctionName(foo) // 'anonymous'
getFunctionName(bar) // 'bar'
getFunctionName('hello') // null

Current Tags

  • 0.0.1                                ...           latest (10 years ago)

1 Versions

  • 0.0.1                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |