{"_id":"stream-transform@3.6.0","bugs":{"url":"https://github.com/adaltas/node-csv/issues"},"dist":{"shasum":"051602df3ef5b703f99f210e57650a92f5860054","tarball":"http://registry-npm.ywwl.com/stream-transform/download/stream-transform-3.6.0.tgz","fileCount":19,"integrity":"sha512-iDtH6HV1MOQ3Ipva+9g/kke1uVLubZlEbGCxbWWlI+Ak++sDRQRxmPZ1iXlmXdLK6kP5fIziUf79GBB7erbppQ==","signatures":[{"sig":"MEUCIQCgHzlmG1SghTtZDWkDPwt4zUKkEhDZnThOtdXWpPsXqQIgIF4xW9yirEoAeTdn8bhgUKmqFJnYGm6mA8sckDdaDqc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCz9yIwmHRetwnws6x1axRDGZlqvZEypNGzHfeMlBdGRQIgNCHkFc3jgSDWQUPWeKF9MNL/LjarK4RV7om9X9PWP3g="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/stream-transform@3.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":965235,"size":238010,"noattachment":false,"key":"/stream-transform/-/stream-transform-3.6.0.tgz"},"main":"./dist/cjs/index.cjs","name":"stream-transform","type":"module","mocha":{"import":"tsx","timeout":40000,"reporter":"spec","recursive":true,"inline-diffs":true,"throw-deprecation":false},"types":"dist/esm/index.d.ts","author":{"url":"https://www.adaltas.com","name":"David Worms","email":"david@adaltas.com"},"exports":{".":{"import":{"types":"./lib/index.d.ts","default":"./lib/index.js"},"require":{"types":"./dist/cjs/index.d.cts","default":"./dist/cjs/index.cjs"}},"./sync":{"import":{"types":"./lib/sync.d.ts","default":"./lib/sync.js"},"require":{"types":"./dist/cjs/sync.d.cts","default":"./dist/cjs/sync.cjs"}},"./browser/esm":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"./browser/esm/sync":{"types":"./dist/esm/sync.d.ts","default":"./dist/esm/sync.js"}},"gitHead":"594c6469c4a7376c1048d13c47859c2f91674206","license":"MIT","scripts":{"test":"tsc --noEmit && mocha 'test/**/*.{js,ts}'","build":"npm run build:rollup && npm run build:ts","lint:ts":"tsc --noEmit true","test:16":"mocha 'test/**/*.js'","build:ts":"cp lib/index.d.ts dist/cjs/index.d.cts && cp lib/sync.d.ts dist/cjs/sync.d.cts && cp lib/*.ts dist/esm","lint:fix":"eslint --fix","lint:check":"eslint && tsc --noEmit true","preversion":"npm run build && git add dist","test:legacy":"mocha --ignore test/handler.mode.callback.js --ignore test/handler.mode.callback.error.js 'test/**/*.{js,ts}'","build:rollup":"rollup -c","postbuild:ts":"find dist/cjs -name '*.d.cts' -exec sh -c \"sed -i \"s/\\.js'/\\.cjs'/g\" {} || sed -i '' \"s/\\.js'/\\.cjs'/g\" {}\" \\;"},"version":"3.6.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:e075e986-2a44-498a-abca-f6bb88e23bf8"}},"homepage":"https://csv.js.org/transform","keywords":["stream","transform","csv","object","backend","frontend"],"repository":{"url":"git+https://github.com/adaltas/node-csv.git","type":"git","directory":"packages/stream-transform"},"_npmVersion":"lerna/10.0.1/node@v24.21.0+x64 (linux)","description":"Object transformations implementing the Node.js `stream.Transform` API","directories":{},"maintainers":[{"name":"david","email":"david@adaltas.com"}],"_nodeVersion":"24.21.0","typesVersions":{"*":{".":["dist/esm/index.d.ts"],"sync":["dist/esm/sync.d.ts"],"browser/esm":["dist/esm/index.d.ts"],"browser/esm/sync":["dist/esm/sync.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"pad":"^3.3.0","tsx":"^4.23.15","mocha":"^12.0.2","rollup":"^4.63.4","should":"~13.2.3","prettier":"^3.9.9","typescript":"^6.0.3","@types/node":"^26.6.2","@types/mocha":"^10.0.10","csv-generate":"^4.6.2","rollup-plugin-node-globals":"^1.4.0","@rollup/plugin-node-resolve":"^16.0.3","rollup-plugin-node-builtins":"^2.1.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stream-transform_3.6.0_1790338595909_0.6806208771104871"},"readme":"# Stream transformation for Node.js and the web\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/adaltas/node-csv/nodejs.yml?branch=master)](https://github.com/adaltas/node-csv/actions)\n[![NPM](https://img.shields.io/npm/dm/stream-transform)](https://www.npmjs.com/package/stream-transform)\n[![NPM](https://img.shields.io/npm/v/stream-transform)](https://www.npmjs.com/package/stream-transform)\n\nThe [`stream-transform` project](https://csv.js.org/transform/) is a simple object transformation framework. It is part of the [CSV project](https://csv.js.org/).\n\nThe Node.js [`stream.Transform` API](http://nodejs.org/api/stream.html#stream_class_stream_transform) is implemented for scalability. The callback-based and sync APIs are also available for convenience. It is both easy to use and powerful.\n\n## Documentation\n\n- [Project homepage](https://csv.js.org/transform/)\n- [API](https://csv.js.org/transform/api/)\n- [Options](https://csv.js.org/transform/options/)\n- [Handler](https://csv.js.org/transform/handler/)\n- [State properties](https://csv.js.org/transform/state/)\n- [Examples](https://csv.js.org/transform/examples/)\n\n## Main features\n\n- Extends the native Node.js [transform stream API](http://nodejs.org/api/stream.html#stream_class_stream_transform)\n- Simplicity with the optional callback and sync API\n- Pipe transformations between readable and writable streams\n- Synchronous versus asynchronous user functions\n- Sequential and parallel execution\n- Accept object, array or JSON as input and output\n- Sequential or user-defined concurrent execution\n- Skip and multiply records\n- Alter or clone input records\n- MIT License\n\n## Usage\n\nRun `npm install csv` to install the full CSV module or run `npm install csv-transform` if you are only interested by the CSV stringifier.\n\nThe module is built on the Node.js Stream API. Use the callback and sync APIs for simplicity or the stream based API for scalability.\n\n## Example\n\nThe [API](https://csv.js.org/transform/api/) is available in multiple flavors. This example illustrates the sync API.\n\n```js\nimport { transform } from \"stream-transform/sync\";\nimport assert from \"assert\";\n\nconst records = transform(\n  [\n    [\"a\", \"b\", \"c\", \"d\"],\n    [\"1\", \"2\", \"3\", \"4\"],\n  ],\n  function (record) {\n    record.push(record.shift());\n    return record;\n  },\n);\n\nassert.deepEqual(records, [\n  [\"b\", \"c\", \"d\", \"a\"],\n  [\"2\", \"3\", \"4\", \"1\"],\n]);\n```\n\n## Development\n\nTests are executed with mocha. To install it, simple run `npm install` followed by `npm test`. It will install mocha and its dependencies in your project \"node_modules\" directory and run the test suite. The tests run against the CoffeeScript source files.\n\nTo generate the JavaScript files, run `npm run coffee`.\n\nThe test suite is run online with [Travis](http://travis-ci.org/wdavidw/node-stream-transform). See the [Travis definition file](https://github.com/adaltas/node-stream-transform/blob/master/.travis.yml) to view the tested Node.js version.\n\n## Contributors\n\nThe project is sponsored by [Adaltas](https://www.adaltas.com), an Big Data consulting firm based in Paris, France.\n\n- David Worms: <https://github.com/wdavidw>\n","publish_time":1790338596014,"_cnpm_publish_time":1790338596014,"dist-tags":{"latest":"3.6.0"}}