Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
p-transform
Advanced tools
Promised out of order transform.
Builds a out-of-order Duplex using a p-queue parallel queue.
transform
implementation must be sync or return a promise. Callback is not supported.
Promisified pipeline
and transform
shortcut are provided for convenience.
import { OutOfOrder, transform, pipeline, passthrough, filter } from 'p-transform';
await pipeline(
new OutOfOrder(
{ transform: async file => file },
{ concurrency: 7 },
).duplex(() => console.log('done')),
passthrough(async file => {}, () => console.log('done')),
filter(async file => true, () => console.log('done')),
transform(async file => file, () => console.log('done')),
)
Use DEBUG=p-transform:*
environment variable.
Apache-2.0
Promisified pipeline
Shortcut to create a OutOfOrder with transform and end callback
Shortcut to create a passthrough OutOfOrder with spy and end callback
Shortcut to create a filter OutOfOrder with filter and end callback
Kind: global class
OutOfOrder
Param | Type | Description |
---|---|---|
[transform] | function | Transform. |
[queueOptions] | Object | Options forwarded to PQueue instance. |
Duplex
Build Duplex.
Kind: instance method of OutOfOrder
Returns: Duplex
Param | Type |
---|---|
end | function |
Promisified pipeline
Shortcut to create a OutOfOrder with transform and end callback.
Kind: global function
Param | Type |
---|---|
transform | function |
end | function |
Shortcut to create a passthrough OutOfOrder with spy and end callback.
Kind: global function
Param | Type |
---|---|
spy | function |
end | function |
Shortcut to create a filter OutOfOrder with filter and end callback.
Kind: global function
Param | Type |
---|---|
filter | function |
end | function |
FAQs
Promised out of order transform.
The npm package p-transform receives a total of 328,017 weekly downloads. As such, p-transform popularity was classified as popular.
We found that p-transform demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.