Simple library to create js custom error, the correct way.
Uses the method suggested here and here.
Usage
const BadNewsError = require('custom-error-js')('BadNews')
const e = new BadNewsError('It just crashed')
// e.name == 'BadNews'
// e.message == 'It just Crashed'
// e instanceOf Error
throw e