# @mycv/f8-notification

> Using the Notifications API

Latest version **1.0.1** (published 2020-03-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mycv/f8-notification
pnpm add @mycv/f8-notification
yarn add @mycv/f8-notification
bun add @mycv/f8-notification
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-03-09 |
| First published | 2020-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 1 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | sondn |
| Maintainers | mycvvn |

## Links

- npm: https://www.npmjs.com/package/@mycv/f8-notification
- Repository: https://github.com/mycvvn/f8-notification
- Homepage: https://github.com/mycvvn/f8-notification#readme
- Issues: https://github.com/mycvvn/f8-notification/issues
- npm.io page: https://npm.io/package/@mycv/f8-notification

## Dependencies (1)

- [local-storage](https://npm.io/package/local-storage.md) ^2.0.0

## Recent versions

- 1.0.1 (latest) — 2020-03-09
- 1.0.0 — 2020-03-07

## README

# @mycv/f8-notification

> Using the Notifications API

[![NPM](https://img.shields.io/npm/v/@mycv/f8-notification.svg)](https://www.npmjs.com/package/@mycv/f8-notification) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @mycv/f8-notification

// or

yarn add @mycv/f8-notification
```

## Usage

```jsx
import React, { useEffect } from 'react';

import { initNotifications, notify } from '@mycv/f8-notification';

function Example() {
  
  useEffect(() => {
    // request after 3 seconds
    initNotifications({ cooldown: 3000 });
  }, []);

  const showNotification = () => {
    notify('Your title', { body: 'Your message.' });
  }

  return null;
  
}
```

## License

MIT © [sondn](https://github.com/sondnpt00343)
# f8-notification

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