UNPKG

@gmb/bitmark-cli

Version:
17 lines 577 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StdinReceivingCommand = void 0; const core_1 = require("@oclif/core"); async function read(stream) { const chunks = []; for await (const chunk of stream) chunks.push(chunk); return Buffer.concat(chunks).toString('utf8'); } class StdinReceivingCommand extends core_1.Command { async init() { StdinReceivingCommand.stdin = await read(process.stdin); } } exports.StdinReceivingCommand = StdinReceivingCommand; //# sourceMappingURL=StdinReceivingCommand.js.map