You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fn.name

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fn.name

Extract names from functions

1.1.0
latest
Source
npm
Version published
Weekly downloads
11M
-5.97%
Maintainers
2
Weekly downloads
 
Created
Source

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

Keywords

fn.name

FAQs

Package last updated on 14 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts