fn-name

WebJar for fn-name

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

fn-name
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

fn-name
WebJar for fn-name
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/fn-name

Download fn-name

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/fn-name/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>fn-name</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/fn-name/
implementation 'org.webjars.npm:fn-name:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/fn-name/
implementation ("org.webjars.npm:fn-name:2.0.1")
'org.webjars.npm:fn-name:jar:2.0.1'
<dependency org="org.webjars.npm" name="fn-name" rev="2.0.1">
  <artifact name="fn-name" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='fn-name', version='2.0.1')
)
libraryDependencies += "org.webjars.npm" % "fn-name" % "2.0.1"
[org.webjars.npm/fn-name "2.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

fn-name

Get the name of a named function

There is a name property on functions, but it's not supported in all browsers. This module tries that property then falls back to extracting the name from the function source.

Install

$ npm install fn-name

Usage

const fnName = require('fn-name');

fnName(function foo() {});
//=> 'foo'

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
2.0.1