Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
get-function-name-x
Advanced tools
getFunctionName module. Returns the name of the function.
es5-sham.js
monkey-patches other ES5 methods as closely as possible.
For these methods, as closely as possible to ES5 is not very close.
Many of these shams are intended only to allow code to be written to ES5
without causing run-time errors in older engines. In many cases,
this means that these shams cause many ES5 methods to silently fail.
Decide carefully whether this is what you want. Note: es5-sham.js requires
es5-shim.js to be able to work properly.
json3.js
monkey-patches the EcmaScript 5 JSON implimentation faithfully.
es6.shim.js
provides compatibility shims so that legacy JavaScript engines
behave as closely as possible to ECMAScript 6 (Harmony).
Version: 1.0.10
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750
module.exports(fn)
⇒ undefined
| string
⏏This method returns the name of the function, or undefined
if not
a function.
Kind: Exported function
Returns: undefined
| string
- The name of the function, or undefined
if
not a function.
Param | Type | Description |
---|---|---|
fn | function | The function to get the name of. |
Example
var getFunctionName = require('get-function-name-x');
getFunctionName(); // undefined
getFunctionName(Number.MIN_VALUE); // undefined
getFunctionName('abc'); // undefined
getFunctionName(true); // undefined
getFunctionName({ name: 'abc' }); // undefined
getFunctionName(function () {}); // ''
getFunctionName(new Function ()); // ''
getFunctionName(function test1() {}); // 'test1'
getFunctionName(function* test2() {}); // 'test2'
getFunctionName(class Test {}); // 'Test'
FAQs
Get the name of the function.
We found that get-function-name-x 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.
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.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.