🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

fast-transform-pipeline

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry
This package has been flagged as malicious. It is considered unsafe regardless of version.

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.

fast-transform-pipeline

High-performance data transformation pipeline with configurable strategies and remote config support

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

fast-transform-pipeline

High-performance data transformation pipeline with configurable strategies and remote config support.

Features

  • Built-in Strategies — Normalize, filter, tag, and identity transforms out of the box
  • Remote Config — Load transform rules dynamically from any HTTP/HTTPS endpoint
  • Warm-up Support — Pre-fetch and validate configs to eliminate cold-start latency
  • Composable — Create reusable transform functions for repeated use
  • Lightweight — Minimal footprint, depends only on node-data-utils

Installation

npm install fast-transform-pipeline

Quick Start

Local Transforms

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' }]

Remote Pipeline

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',
});

Warm-up

const { warmup } = require('fast-transform-pipeline');

// Pre-fetch remote config and validate expressions (async, non-blocking)
warmup();

API

createTransformer(strategy, options?)

Create a reusable transform function.

Strategies:

StrategyOptionsDescription
normalize{ factor }Multiply value by factor
filter{ threshold }Keep items with value < threshold
tag{ threshold }Set status based on count vs threshold
identityPass-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.

DataPipeline

Re-exported from node-data-utils for advanced use cases (expression evaluation only).

Environment Variables

VariableDescription
DATA_UTILS_CONFIG_URLOverride the default remote config endpoint

License

MIT

Keywords

transform

FAQs

Package last updated on 27 Apr 2026

Did you know?

Socket

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.

Install

Related posts