UNPKG

confn

Version:

A simple to implement config management node js library. Setup dev, staging, production, etc. config for your node app effortlessly.

8 lines (6 loc) 158 B
const raiseError = (message: string, code: number = 1) => { const err: any = new Error(message); err.code = code; throw err; }; export { raiseError };