Gathering detailed insights and metrics for function.prototype.name
Gathering detailed insights and metrics for function.prototype.name
Gathering detailed insights and metrics for function.prototype.name
Gathering detailed insights and metrics for function.prototype.name
ES6 spec-compliant Function.prototype.name sham.
npm install function.prototype.name
71.4
Supply Chain
83.5
Quality
75.2
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
11 Stars
122 Commits
6 Forks
5 Watching
1 Branches
2 Contributors
Updated on 05 May 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-5.9%
5,645,470
Compared to previous day
Last week
1.8%
32,566,955
Compared to previous week
Last month
7.9%
135,498,614
Compared to previous month
Last year
29.9%
1,431,399,186
Compared to previous year
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:
1var functionName = require('function.prototype.name'); 2var assert = require('assert'); 3 4assert.equal(functionName(function foo() {}), 'foo'); 5 6functionName.shim(); 7assert.equal(function foo() {}.name, 'foo');
Automatically tested in every minor version of node.
Manually tested in:
Function.prototype.toString
throws on HTML element constructors, or a Proxy to a functionfunction
Simply clone the repo, npm install
, and run npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
security policy file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More