# cycle-humanejs-driver

> Display growl-like notifications from a Cycle app.

Latest version **0.0.1** (published 2016-04-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install cycle-humanejs-driver
pnpm add cycle-humanejs-driver
yarn add cycle-humanejs-driver
bun add cycle-humanejs-driver
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-04-16 |
| First published | 2016-04-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Giovanni T. Parra |
| Maintainers | fiatjaf |
| Keywords | cyclejs, cycle, driver, humane, notifications |

## Links

- npm: https://www.npmjs.com/package/cycle-humanejs-driver
- Repository: https://github.com/fiatjaf/cycle-humanejs-driver
- Homepage: https://github.com/fiatjaf/cycle-humanejs-driver#readme
- Issues: https://github.com/fiatjaf/cycle-humanejs-driver/issues
- npm.io page: https://npm.io/package/cycle-humanejs-driver

## Dependencies (1)

- [humane-js](https://npm.io/package/humane-js.md) ^3.2.2

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2016-04-16

## README

[humane-js](http://wavded.github.io/humane-js/) notifications for your [Cycle](http://cycle.js.org/) app.

```
npm install --save cycle-humanejs-driver
```

```html
<head>
  <link href=https://cdnjs.cloudflare.com/ajax/libs/humane-js/3.2.2/themes/flatty.min.css rel=stylesheet>
</head>
```

```javascript
// cycle instantiation
var makeNotificationDriver = require('cycle-humanejs-driver')

drivers = {
  DOM: ...,
  HTTP: ...,
  NOTIFICATION: makeNotificationDriver({timeout: 8000 /* settings passed directly to humane-js */ })
}

// inside the cycle component
  return {
    DOM: ...,
    HTTP: ...,
    NOTIFICATION: Rx.Observable.from([
      'simple notification',
      ['success notification', 'success'],
      ['error notification', 'error'],
      ['custom notification', {addnCls: 'my-notification-class' /* object passed directly to humane-js */ }]
    ])
  }

```

It requires the _flatty_ theme to work with `'error'`, `'success'` and `'info'` shortcuts, but you can use other themes with the custom notification and explicitly setting the class.

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