jchip

jchip/optional-require

node.js require that let you handle module not found error without try/catch

TypeScript
9
5
No license

This project provides a Node.js utility for gracefully requiring modules that may not exist, eliminating the need for try/catch blocks when handling missing modules. It's designed for developers who want cleaner code when working with optional dependencies or modules that might be absent in certain environments.

Total donated
Undistributed
Share with your subscribers: