
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
funckey —Run npm install funckey
import funckey from 'funckey'
const funckey = require('funckey').default
Module exports a unary function accepting an object with named parameters as follows:
| Argument | Type/Default | Required | Description |
|---|---|---|---|
obj | Object | Yes | The object to search for functions |
prefix | String = '' | No | A prefix to add to found paths |
arrayMode | Boolean= false | No | Whether to return paths as arrays instead of dot-separated strings. See symbNames. |
symbNames | Boolean= false | No | Whether to search own property symbols. If true, arrayMode enabled by default. |
propNames | Boolean= false | No | Whether to search own property names |
all | Boolean= false | No | If true, include own property names and own property symbols |
excludes | Array= [] | No | Object references to exclude from traversal (i.e., circular references) |
excludeKeys | Array= ['prototype'] | No | Keyed references to exclude from traversal |
const fixture0 = {
n(){},
o: {
a: ()=>{},
b:3,
c: {
d(){},
e: 4
}
}
}
funckey({obj: fixture0})
// ['n', 'o.a', 'o.c.d']
const fixture1 = {
n(){},
o: {
a: ()=>{},
b:3,
c: {
d(){},
e: 4
}
}
}
funckey({obj: fixture1, arrayMode: true})
// [['n'], ['o', 'a'], ['o', 'c', 'd'] ]
prototype subpaths):funcKey({obj: Array, propNames: true}) // [ 'isArray', 'from', 'of' ]
string- and symbol-keyed function pathss using all option:const fixture2 = {
a: 3,
b(){},
[Symbol.for('c')]: {
ca: ()=>{},
[Symbol.for('cb')]: ()=>{},
cc: 'no'
},
d: {
da () {},
[Symbol.for('db')]:()=>{},
dc: 33
}
}
funckey({obj: fixture2, all:true})
// [
// [ 'b' ],
// [ 'd', 'da' ],
// [ 'd', Symbol(db) ],
// [ Symbol(c), 'ca' ],
// [ Symbol(c), Symbol(cb) ]
// ]
npm test
FAQs
Function-valued properties of objects as dot-separated/array paths.
We found that funckey 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.