Socket
Socket
Sign inDemoInstall

fn.name

Package Overview
Dependencies
0
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fn.name

Extract names from functions


Version published
Weekly downloads
7.3M
decreased by-2.95%
Maintainers
2
Install size
6.82 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 14 Jun 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc