MCPcopy
hub / github.com/adaltas/node-csv / _transform

Method _transform

packages/csv-stringify/lib/index.js:34–43  ·  view source on GitHub ↗
(chunk, encoding, callback)

Source from the content-addressed store, hash-verified

32 };
33 }
34 _transform(chunk, encoding, callback) {
35 if (this.state.stop === true) {
36 return;
37 }
38 const err = this.api.__transform(chunk, this.push.bind(this));
39 if (err !== undefined) {
40 this.state.stop = true;
41 }
42 callback(err);
43 }
44 _flush(callback) {
45 if (this.state.stop === true) {
46 // Note, Node.js 12 call flush even after an error, we must prevent

Callers

nothing calls this directly

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected