
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
cheeky-async
Advanced tools
Some cheeky async versions of Array methods like map, filter and reduce. With support for sequential and parallel processing.
Some cheeky async versions of Array methods like
map
,filter
andreduce
. With support for sequential and parallel processing.
import {map} from "cheeky-async"
await map([1, 2, 3], async (value) => {
return value + (await getThingy())
})
This project uses node and npm.
$ npm install cheeky-async
$ # OR
$ yarn add cheeky-async
Invoke an async transform/mapping function on each item in an Array returning the resulting Array of transformed/mapped items. Async async transform/mapping function is invoked in parallel by default.
This is an async version of
Array.prototype.map()
.
array
Array The Array to map overmapper
MapperFunction Async function, gets passed (value, index, array)
, returns the new value.config
Config ConfigurationInvoke an async predicate function on each item in an Array returning the resulting Array with all items passing the condition of the predicate function. Async async predicate function is invoked in parallel by default.
This is an async version of
Array.prototype.filter()
.
array
Array The Array to map overmapper
PredicateFunction Async function, gets passed (value, index, array)
, returns the new value.config
Config ConfigurationReturns Promise resulting mapped/transformed values.
Invoke an async predicate function on each item in an Array returning true/false depending on all items passing the condition of the predicate function. Async async predicate function is invoked in parallel by default.
This is an async version of
Array.prototype.every()
.
array
Array The Array to map overmapper
PredicateFunction Async function, gets passed (value, index, array)
, returns the new value.config
Config ConfigurationReturns Promise<Boolean> resulting mapped/transformed values.
Invoke an async predicate function on each item in an Array returning true/false depending on any items passing the condition of the predicate function. Async async predicate function is invoked in parallel by default.
This is an async version of
Array.prototype.some()
.
array
Array The Array to map overmapper
PredicateFunction Async function, gets passed (value, index, array)
, returns the new value.config
Config ConfigurationReturns Promise<Boolean> resulting mapped/transformed values.
Invoke an async reducer function on each item in an Array returning the resulting value. Async async reducer function is invoked in sequence by default.
This is an async version of
Array.prototype.reduce()
.
array
Array The Array to reduce.reducer
reducerFunction Async function, gets passed (accumulator, value, index, array)
, returns the new accumulator.config
Config ConfigurationReturns Promise resulting value.
git checkout -b my-new-feature
git commit -am "Add some feature"
git push origin my-new-feature
MIT
FAQs
Some cheeky async versions of Array methods like map, filter and reduce. With support for sequential and parallel processing.
We found that cheeky-async 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.