
Security News
NVD Concedes Inability to Keep Pace with Surging CVE Disclosures in 2025
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
function-name-support
Advanced tools
Determine the level of support for function name inference.
Feature detection for function names. See The names of functions in
ES6 for background.
Provides the same results as
node-compat-table
.
$ npm install --save function-name-support
const functionNameSupport = require('function-name-support')
support
A frozen object with boolean values. Compare with
node-compat-table
:
functionStatements
functionExpressions
newFunction
boundFunctions
functionVariables
functionObjectMethods
accessorProperties
shorthandMethods
symbolKeyedMethods
classStatements
classExpressions
classVariables
classObjectMethods
classPrototypeMethods
classStaticMethods
hasFullSupport
A boolean indicating whether all known function name inferences are supported.
bitFlags
An integer that stores a serialization of the support
object. Useful when
storing a function name (or lack thereof) for later comparisons along with
details on whether the function name was inferable at all.
isSubsetOf(otherFlags): boolean
Helper method for comparing bitFlags
. Returns true
if it is a subset of
otherFlags
.
isSupersetOf(otherFlags: number): boolean
Helper method for comparing bitFlags
. Returns true
if it is a superset of
otherFlags
.
FAQs
Determine the level of support for function name inference.
The npm package function-name-support receives a total of 8,997 weekly downloads. As such, function-name-support popularity was classified as popular.
We found that function-name-support 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
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.