open-index/open-npm huggingface dataset:
npm package: @roddynpm/bs-swr
Description: BuckleScript bindings to [SWR](https://github.com/zeit/swr).
Latest version: 0.3.0

# bs-swr
BuckleScript bindings to [SWR](https://github.com/zeit/swr).

## Installation
Add
```
"@roddynpm/bs-swr": "^0.2.5",
"swr": "^0.2.0",
```
as dependencies to `package.json` and `@roddynpm/bs-swr` to `bsconfig.json`.

## Example
```reason
[@react.component]
let make = () => {
  let config = Swr.Options.make(~dedupingInterval=6000, ());
  let Swr.{data} = Swr.useSWR(~config, "key", _ => load_data());

  switch (data) {
  | Some(data) => render(data)
  | None => render_loading()
  };
};
```
npm package: @roddyvitali/fullscreen-js
Description: Fullscreen DOM in Javascript
Author: Roddy Vitali
Latest version: 0.0.5

# Fullscreen-js

## Fullscreen
Plugin for add the mode fullscreen in your app

## Install
```
npm install roddyvitali/fullscreen-js
```
## Examples
```javascript
import fullscreen from '@roddyvitali/fullscreen-js'

fullscreen.is() // Return true if the body or element is in mode fullscreen
fullscreen.enabled() // Return true if API is enabled

document.querySelector('.selector').addEventListener('click', ()=>{
  fullscreen.request() // Fullscreen Body
  fullscreen.request('.spaceFS') // Fullscreen element whit class spaceFS
})

document.querySelector('.selectorExit').addEventListener('click', ()=>{
  fullscreen.exit() // Exit Fullscreen
})

```

## Credits
- [Roddy Vitali](https://twitter.com/@roddyvitali)

## License
- [MIT](https://github.com/roddyvitali/rut-utils/tree/master/LICENSE)