
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
falcon-punch
Advanced tools
Flatten your objects and arrays by a delimiter
$ npm install --save falcon-punch
Not using Node or a module bundler? Use a UMD build via the <script>
tag.
import falconPunch from 'falcon-punch'
const o = {
a: 1,
b: {
c: 'falcon',
d: {
e: 'punch'
}
}
}
// { a: 1, 'b_c': 'falcon', 'b_d_e': 'punch' }
falconPunch(o)
// Specify opts: delimiter & maxDepth
// { a: 1, 'b???c': 'falcon', 'b???d': { e: 'punch' } }
falconPunch(o, { delimiter: '???', maxDepth: 1 })
// go crazy
const arr = [
{
a: [
[
{
b: 0,
c: 1
},
10
],
{
d: {
e: null,
f: [],
g: {},
h: undefined
}
}
]
},
[[1, [{}]]]
]
/*
{
'0.a.0.0.b': 0,
'0.a.0.0.c': 1,
'0.a.0.1': 10,
'0.a.1.d.e': null,
'0.a.1.d.f': [],
'0.a.1.d.g': {},
'0.a.1.d.h': undefined,
'1.0.0': 1,
'1.0.1.0': {}
}
*/
falconPunch(arr, { delimiter: '.' })
FAQs
Flatten your objects and arrays by a delimiter
The npm package falcon-punch receives a total of 15 weekly downloads. As such, falcon-punch popularity was classified as not popular.
We found that falcon-punch 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.