@yamato-daiwa/es-extensions-nodejs
TypeScript icon, indicating that this package has built-in type declarations

1.5.3 • Public • Published

Yamato Daiwa ES Extensions - NodeJS

No any type NPM Version

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.

Package Sidebar

Install

npm i @yamato-daiwa/es-extensions-nodejs

Weekly Downloads

4

Version

1.5.3

License

MIT

Unpacked Size

81.4 kB

Total Files

23

Last publish

Collaborators

  • yd-tokugawa_t