Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inDemoInstall

function.prototype.name

Package Overview
Dependencies
4
Maintainers
1
Versions
10
Issues
File Explorer

Advanced tools

function.prototype.name

An ES2015 spec-compliant `Function.prototype.name` shim

    1.1.5latest
    Github

Version published
Maintainers
1
Weekly downloads
18,665,330
increased by0.49%

Weekly downloads

Readme

Source

function.prototype.name Version Badge

dependency status dev dependency status License Downloads

npm badge

An ES2015 spec-compliant Function.prototype.name shim. Invoke its "shim" method to shim Function.prototype.name if it is unavailable. Note: Function#name requires a true ES5 environment - specifically, one with ES5 getters.

This package implements the es-shim API interface. It works in an ES5-supported environment and complies with the spec.

Most common usage:

Example

var functionName = require('function.prototype.name'); var assert = require('assert'); assert.equal(functionName(function foo() {}), 'foo'); functionName.shim(); assert.equal(function foo() {}.name, 'foo');

Tests

Simply clone the repo, npm install, and run npm test

Keywords

FAQs

What is function.prototype.name?

An ES2015 spec-compliant `Function.prototype.name` shim

Is function.prototype.name popular?

The npm package function.prototype.name receives a total of 17,798,448 weekly downloads. As such, function.prototype.name popularity was classified as popular.

Is function.prototype.name well maintained?

We found that function.prototype.name demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 02 Oct 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket[email protected]

Product

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc