personnal/ecole/node_modules copy/fn.name
Alexis Burnaz 23ce270077 tfac be like, last ver 2026-06-12 10:19:12 +02:00
..
.gitattributes tfac be like, last ver 2026-06-12 10:19:12 +02:00
.travis.yml tfac be like, last ver 2026-06-12 10:19:12 +02:00
LICENSE tfac be like, last ver 2026-06-12 10:19:12 +02:00
README.md tfac be like, last ver 2026-06-12 10:19:12 +02:00
index.js tfac be like, last ver 2026-06-12 10:19:12 +02:00
package.json tfac be like, last ver 2026-06-12 10:19:12 +02:00
test.js tfac be like, last ver 2026-06-12 10:19:12 +02:00

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