5.2.0 • Published 3 months ago

@lifeomic/test-tool-utils v5.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@lifeomic/test-tool-utils

npm Build Status

logging

Exposes a debug instance for the named library

export interface Logger {
  info: Debugger;
  error: Debugger;
  warn: Debugger;
  debug: Debugger;
  child(name: string): Logger;
}
import { logging } from '@lifeomic/test-tool-utils';

const logger = logging.getLogger('my-lib');

writeBuffer

An array backed buffer for streams. Especially useful for handling Docker streams.

import { writeBuffer } from '@lifeomic/test-tool-utils';

...
const stderr = new writeBuffer.WriteBuffer();
const stdout = new writeBuffer.WriteBuffer();
container.modem.demuxStream(stream, stdout, stderr);
...

console.info(stdout.toString('utf-8'));
console.error(stderr.toString('utf-8'));

debug

5.2.0

3 months ago

5.1.1

4 months ago

5.1.0

7 months ago

5.0.0

8 months ago

4.1.3

11 months ago

4.1.2

1 year ago

4.1.1

1 year ago

4.1.0

1 year ago

3.3.1

2 years ago

4.0.0

2 years ago

3.3.0

2 years ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

1.2.0

2 years ago

2.0.0

2 years ago

1.1.0

2 years ago