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

1.6.0 • 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

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.

Pre-made errors

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.

Package Sidebar

Install

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

Weekly Downloads

32

Version

1.6.0

License

MIT

Unpacked Size

166 kB

Total Files

43

Last publish

Collaborators

  • yd-tokugawa_t