wrappers/debug/index.js
function Debug(...rest) {
  if (new.target) {
    /**
     * @param id
     * @param stats
     * @param rest
     */
    this.debug = (id, stats, ...rest) => {
      debug(id)(...rest);
    };
    return;
  }
  return new Debug(...rest);
}
function Debug(...rest) {
  if (new.target) {
    /**
     * @param id
     * @param stats
     * @param rest
     */
    this.debug = (id, stats, ...rest) => {
      debug(id)(...rest);
    };
    return;
  }
  return new Debug(...rest);
}
Logtown debug wrapper