Big update!Introducing GitHub Bot Commands. Learn more
Socket
BlogLoveLog in
Book a demo

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

Version published
Maintainers
1
Weekly downloads
18,731,490
increased by3.43%

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,970,953 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 healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 02 Oct 2021
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc