1.0.5 • Published 6 years ago

stackhelp v1.0.5

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

stackhelp.js

Hardcore StackOverflow debugging. :see_no_evil:

What

stackhelp will throw your Error right on Stack Overflow using your default browser.

How

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.

Are you here yet?

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.setTags([
  'NodeJs', 
  'npm'
 ]) //will add stackoverflow tags to your querie

// this is it

Test

Run npm install --only=dev

Then npm test

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago