Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@exodus/basic-utils
Advanced tools
Basic lightweight lib with common utility classes and methods.
[![npm][npm-image]][npm-url]] [npm-image]: https://img.shields.io/npm/v/@exodus/basic-utils.svg?style=flat-square [npm-url]: https://www.npmjs.com/package/@exodus/basic-utils
yarn add @exodus/basic-utils
import { SynchronizedTime } from '@exodus/basic-utils'
console.log(SynchronizedTime.now())
import { cleanInput } from '@exodus/basic-utils'
cleanInput('1.2abc@!#') // returns 1.2
Flatten an object to an array of [...path, leafValue]
arrays.
import { flattenToPaths } from '@exodus/basic-utils'
flattenToPaths({
harry: {
wand: 'holly',
},
grindie: {
wand: 'yew',
},
voldie: {
wand: 'yew',
},
})
// [
// ['harry', 'wand', 'holly'],
// ['grindie', 'wand', 'yew'],
// ['voldie', 'wand', 'yew'],
// ]
The following functions work like their lodash counterparts, with some caveats:
pick(users, ['name', 'age'])
but NOT pick(users, 'name')
. Please see the tests before you use them.Before using a function, check its unit tests to make sure you're using the API correctly.
import {
pick,
pickBy,
omit,
mapKeys,
mapValues,
keyBy,
orderBy,
isNil,
isObjectLike,
isPlainObject,
difference,
intersection,
partition,
set,
} from '@exodus/basic-utils'
See ./src/async.js and ./src/p-debounce.js for more details.
mapValuesAsync
, filterAsync
, partitionAsync
are the async counterparts of mapValues
, filter
, partition
respectively.pDebounce
: p-debounce, copied from the original temporarily to avoid having to ship this as ESM.FAQs
Basic lightweight lib with common utility classes and methods.
The npm package @exodus/basic-utils receives a total of 11,140 weekly downloads. As such, @exodus/basic-utils popularity was classified as popular.
We found that @exodus/basic-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.