Yamato Daiwa ES Extensions - NodeJS


!
MIT
!
TypeScript

!
No any type



Additional to
@yamato-daiwa/es-extensions functionality
for Node.js environment.
Helper functions and classes aimed to reduce the routine code.
Build-in TypeScript type safety without
any type.
Oriented to TypeScript users investing the time to quality including type-safety.
Installation
The minor versions of
@yamato-daiwa/es-extensions-nodejs and
@yamato-daiwa/es-extensions must match.
``
npm i @yamato-daiwa/es-extensions-nodejs @yamato-daiwa/es-extensions -E
``
Functionality
$3
- ConsoleApplicationLogger
- The implementation of ILogger interface for Logger facade and Node.js environment.
- ConsoleCommandsParser
- Parsing and validating of CLI commands
- isErrnoException
- Type guard which checks is value compatible with NodeJS.ErrnoException interface.
$3
- FileNotFoundError
- Intended to be thrown when the file which expected to exist was not found.
- InvalidConsoleCommandError
- Intended to be thrown when the inputted console commands does not match with the manual.