Yamato Daiwa ES Extensions - NodeJS
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
Utils
- ConsoleCommandsParser
- Parsing and validating of CLI commands
- ConsoleApplicationLogger
- The implementation of ILogger interface for Logger facade and Node.js environment.
- isErrnoException
- Type guard which checks is value compatible with NodeJS.ErrnoException interface.
Pre-made errors
- InterProcessInteractionFailedError
- Intended to be used when the interaction between NodeJS processes is not going as expected. Could be actual, for example, for the Electron.js where the main process and render process are exchanging by the data.
- InvalidConsoleCommandError
- Intended to be thrown the inputted console command does not satisfy to valid schema.