Hardcore StackOverflow debugging. ๐
stackhelp will throw your Error right on Stack Overflow using your default browser.
First, you should
npm i stackhelp
example:
const stackhelp = require('stackhelp')
function promiseFail() {
return new Promise( (resolve, reject) => {
setTimeout(() => {
reject('Promise will always fail')
}, 500)
})
}
// 'find' function will look for 'err' on Stack Overflow
promiseFail().catch(err => stackhelp.find(err))
Automatic opens your default browser with the proper stackoverflow search, can become really annoying.
stackhelp.off() // turns off stackhelp
stackhelp.on() // turns on stackhelp
stackhelp.toggle() // if on, turn off and vice versa
stackhelp.getStatus() // ==> 'on' or 'off'
stackhelp.url // ==> http://www.stackoverflow.com/search?q=
stackhelp.setTags([
'NodeJs',
'npm'
]) //will add stackoverflow tags to your querie
// this is it
Run npm install --only=dev
Then npm test