open-index/open-npm huggingface dataset:
npm package: @letslearn/usehotkey
Description: React wrapper for github hotkey
Author: saravanan10393
Latest version: 0.0.4

React hook for [github's hotkey package](https://github.com/github/hotkey).

1. Install
```
npm i -S @letslearn/hotkey
```

2. Usage in react hook
```
function KeyCount() {
  let [count, setCount] = React.useState(0);
  console.log("hotkey is comming ", useHotkey);
  let elementRef = useHotkey("h");
  return <h1 ref={elementRef} onClick={() => setCount(prev => prev + 1)}>Type h to count: {count}</h1>
}
```
By default, key shortcuts are registerd in global level, if you want to enable shortcut only
when using is typing in particular element, we can scope out the when to fire the short cut

```
function KeyCount() {
  let elementRef = useHotkey("h", {scope: "root"});
}
```

### Options
```
{
    scope: "string"
}
```
scope parameter takes the id of element to enable shortcuts inside element.
npm package: @letsnova/vue-auth
Description: Vue.js token based authentication plugin. Supports simple token based and Json Web Tokens (JWT) authentication.
Author: Websanova
Latest version: 2.21.15-beta

# Vue Auth

A simple light-weight authentication library for Vue.js

## Guides

* [Guide](https://github.com/websanova/vue-auth/blob/master/docs/Guide.md)
* [Step By Step Guide](https://github.com/websanova/vue-auth/blob/master/docs/StepByStepGuide.md)
* [FAQ](https://github.com/websanova/vue-auth/blob/master/docs/Faq.md)

## Reference

* [Installation](https://github.com/websanova/vue-auth/blob/master/docs/Installation.md)
* [Demos](https://github.com/websanova/vue-auth/blob/master/docs/Demos.md)
* [Authentication](https://github.com/websanova/vue-auth/blob/master/docs/Authentication.md)
* [Privileges](https://github.com/websanova/vue-auth/blob/master/docs/Privileges.md)
* [Methods](https://github.com/websanova/vue-auth/blob/master/docs/Methods.md)
* [Options](https://github.com/websanova/vue-auth/blob/master/docs/Options.md)
* [Change Log](https://github.com/websanova/vue-auth/blob/master/docs/ChangeLog.md)
* [Contributors](https://github.com/websanova/vue-auth/blob/master/docs/Contributors.md)
npm package: @letsnova/vue-jivosite
Description: Vue plugin for Jivosite live chat
Latest version: 1.0.3

# jivosite

Vue plugin for [Jivosite](https://www.jivosite.ru/) live chat

## Usage
1. Install the package
```bash
$ npm i @bchteam/vue-jivosite
```

2. Use the plugin
```javascript
import VueJivosite from '@bchteam/vue-jivosite'

Vue.use(VueJivosite, { widgetId: 'Et2u4i' })
```

3. Handler for success/failed loading can be added:
```javascript
import VueJivosite from '@bchteam/vue-jivosite'

Vue.use(VueJivosite, {
  widgetId: 'Et2u4i',
  onInit() {
    console.log('Success!')
  },
  onFail(error) {
    console.log('Failed :-(', error)
  }
})
```

If `onFail` handler is not provided, failed initialization throws exception (because of unhandled promise rejection).