Gets the name of a number, even if it's stupidly big. Supersedes TheoryOfNekomata/number-name.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

20 行
462 B

  1. import {WriteStream} from 'tty';
  2. export class DummyWriteStream extends WriteStream {
  3. private bufferInternal = Buffer.from('');
  4. constructor() {
  5. super(0);
  6. }
  7. write(input: Uint8Array | string, _encoding?: BufferEncoding | ((err?: Error) => void), _cb?: (err?: Error) => void): boolean {
  8. this.bufferInternal = Buffer.concat([this.bufferInternal, Buffer.from(input)]);
  9. // noop
  10. return true;
  11. }
  12. get buffer(): Buffer {
  13. return this.bufferInternal;
  14. }
  15. }