fn.name
Extract names from functions
Last updated 8 years ago by 3rdeden .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fn.name 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.0                                ...           latest (8 years ago)

3 Versions

  • 1.1.0                                ...           8 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (2)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 11
Dependencies (0)
None
Dev Dependencies (4)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |