UNPKG

proxy-tracker

Version:

Nato per separare in modo semplice il controllo degli errori e il logging dalla logica dell'applicazione. Facilita l'uso di Proxy con handler complessi scrivendoli in una forma standardizzata. Permette di inserire funzioni "spia" tramite Proxy

9 lines (5 loc) 266 B
const LazyError = require('laziest-error'); const errors = new LazyError(TypeError); errors.name_for_in_handler_isnt_string = 'The name of FOR must to be a string or array of string'; const check = require('errformance')('dev'); module.exports = {errors, check};