apiref
tkt@2.0.2

tkt  EntryPoint

An opinionated toolkit for building Node.js applications. Comes with good IntelliSense support thanks to TypeScript.

Remarks

For usage guide please check out the main documentation page at https://docs.dt.in.th/tkt/

Functions

FunctionDescription
cli(globalOptions)Creates a command-line interface.
invariant(value, message, extra)Asserts state which your program assumes to be true. If it is false, an error is thrown.
logger(name)Create an ILogger instance with a given name.

Interfaces

InterfaceDescription
ICliA command-line interface created by the cli() function.
ILoggerA logger instance created by the logger() function or the ILogger.child() method. See Pino’s API for more information.

Namespaces

NamespaceDescription
loggerModify the logger’s behavior.

Type Aliases

Type AliasDescription
CliArguments