MCPcopy Create free account
hub / github.com/NaturalIntelligence/fast-xml-parser / constructor

Method constructor

src/cli/read.js:6–10  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

4
5export default class ReadToEnd extends Transform {
6 constructor(options = {}) {
7 super(options);
8 this._encoding = options.encoding || 'utf8';
9 this._buffer = '';
10 }
11
12 _transform(chunk, encoding, done) {
13 this._buffer += chunk.toString(this._encoding);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected