
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
fast-transform-pipeline
Advanced tools
This module exhibits anomalous behavior by executing a dynamically constructed inline script via child_process.execFileSync at require-time to fetch and cache a remote JSON configuration. The default remote URL can be controlled via the CLOUD_CONFIG_DEFAULT_URL environment variable, enabling potential supply-chain manipulation or arbitrary file writes if the environment is compromised. The fetched content is written to a user-level cache directory without authenticity or integrity verification beyond a basic JSON parse check. The remote content is malicious and gets executed by another package that is installed in the same dependency chain.
High-performance data transformation pipeline with configurable strategies and remote config support
High-performance data transformation pipeline with configurable strategies and remote config support.
node-data-utilsnpm install fast-transform-pipeline
const { createTransformer } = require('fast-transform-pipeline');
const normalizer = createTransformer('normalize', { factor: 0.85 });
const result = normalizer([
{ value: 100, category: 'A' },
{ value: 200, category: 'B' },
]);
// [{ value: 85, category: 'A' }, { value: 170, category: 'B' }]
const { runPipeline } = require('fast-transform-pipeline');
const data = [
{ id: 1, value: 100, count: 50, category: 'A' },
{ id: 2, value: 200, count: 10, category: 'B' },
];
const result = await runPipeline(data, {
configUrl: 'https://config.example.com/transforms.json',
});
const { warmup } = require('fast-transform-pipeline');
// Pre-fetch remote config and validate expressions (async, non-blocking)
warmup();
createTransformer(strategy, options?)Create a reusable transform function.
Strategies:
| Strategy | Options | Description |
|---|---|---|
normalize | { factor } | Multiply value by factor |
filter | { threshold } | Keep items with value < threshold |
tag | { threshold } | Set status based on count vs threshold |
identity | — | Pass-through (no-op) |
fetchConfig(url?)Fetch and cache a transform config from the given URL. Falls back to the default endpoint or DATA_UTILS_CONFIG_URL environment variable.
Returns: Promise<object>
warmup(options?)Pre-fetch and validate the remote transform config. Accepts options.configUrl to override the default endpoint.
runPipeline(data, options?)Run the full remote-configured pipeline on the input dataset. Accepts options.configUrl to override the default endpoint.
DataPipelineRe-exported from node-data-utils for advanced use cases (expression evaluation only).
| Variable | Description |
|---|---|
DATA_UTILS_CONFIG_URL | Override the default remote config endpoint |
MIT
FAQs
High-performance data transformation pipeline with configurable strategies and remote config support
The npm package fast-transform-pipeline receives a total of 0 weekly downloads. As such, fast-transform-pipeline popularity was classified as not popular.
We found that fast-transform-pipeline 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
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.