# stackhelp

> Pass an error to stackhelp and it will search on StackOverflow for you.

Latest version **1.0.5** (published 2018-01-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install stackhelp
pnpm add stackhelp
yarn add stackhelp
bun add stackhelp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2018-01-26 |
| First published | 2018-01-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rafael Lagemann |
| Maintainers | rdlagemann |
| Keywords | stack overflow, helper, debug |

## Links

- npm: https://www.npmjs.com/package/stackhelp
- Repository: https://github.com/rdlagemann/stackhelp.js
- Homepage: https://github.com/rdlagemann/stackhelp.js#readme
- Issues: https://github.com/rdlagemann/stackhelp.js/issues
- npm.io page: https://npm.io/package/stackhelp

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2018-01-26
- 1.0.4 — 2018-01-25
- 1.0.3 — 2018-01-25
- 1.0.2 — 2018-01-25
- 1.0.1 — 2018-01-25
- 1.0.0 — 2018-01-25

## README

# 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:
```javascript
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?

```javascript
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`

---
_Source: https://npm.io/package/stackhelp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
