1.0.5 • Published 3 years ago

@mamphis/express-utils v1.0.5

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

@mamphis/express-utils

This package contains useful utilities for express.

It is not intended for public usage, but for helper funtions which i use every time.

API

Logger

Logger

logger(loggerOptions?: LoggerOptions): express.Handler;

Default options are provided.

Default output: console.
Default format: DD.MM.YY HH:mm:ss.SSS

LoggingOutput

type LoggingOutput = {
    log(message?: any, ...optionalParams: any[]): void;
}

LoggerOptions

type LoggingOutput = {
    output: LoggingOutput;
    format: string;
}

LoggingOutput.output The output channel to write the logging message to.

LoggingOutput.format The datetime format to display in the logging message

1.1.0-7

3 years ago

1.1.0-6

3 years ago

1.1.0-5

3 years ago

1.1.0-4

3 years ago

1.1.0-3

3 years ago

1.1.0-2

3 years ago

1.1.0-1

3 years ago

1.1.0-0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago