docs: function _stdin(data) {
              return __awaiter(this, void 0, void 0, function* () {
                  if (data) {
                      data = (toString.call(data) === '[object Array]') ? data : [data];
                      for (let idx in data) {
                          yield (new Promise((resolve, reject) => {
                              try {
                                  state.paused = !(child.stdin.write(data[idx], 'utf8'));
                                  setTimeout(() => {
                                      resolve();
                                  }, options.delta);
                              }
                              catch (err) {
                                  /* istanbul ignore next */
                                  reject();
                              }
                          }));
                      }
                      cache.transcript.push(`stdin: ${data}`);
                      if (options.debug) {
                          process.stdout.write(`${data}`);
                      }
                  }
              });
          }