Gets the name of a number, even if it's stupidly big. Supersedes TheoryOfNekomata/number-name.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 rivejä
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. }