MCPcopy Create free account
hub / github.com/restify/node-restify / constructor

Method constructor

test/lib/streamRecorder.js:6–10  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

4
5class StreamRecorder extends stream.Writable {
6 constructor(options) {
7 options = options || {};
8 super(options);
9 this.flushRecords();
10 }
11
12 _write(chunk, encoding, callback) {
13 const record = JSON.parse(chunk.toString());

Callers

nothing calls this directly

Calls 1

flushRecordsMethod · 0.95

Tested by

no test coverage detected