# nocms-events

> Global events for NoCMS

Latest version **1.2.2** (published 2018-04-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install nocms-events
pnpm add nocms-events
yarn add nocms-events
bun add nocms-events
```

## 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.2.2 |
| Published | 2018-04-25 |
| First published | 2017-05-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jørgen Landsnes Johansen |
| Maintainers | nocms |
| Keywords | events |

## Links

- npm: https://www.npmjs.com/package/nocms-events
- Repository: https://github.com/miles-no/nocms-events
- Homepage: https://github.com/miles-no/nocms-events#readme
- Issues: https://github.com/miles-no/nocms-events/issues
- npm.io page: https://npm.io/package/nocms-events

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 1.2.2 (latest) — 2018-04-25
- 1.2.1 — 2018-03-05
- 1.2.0 — 2017-10-31
- 1.1.1 — 2017-09-15
- 1.1.0 — 2017-09-15
- 1.0.0 — 2017-08-04
- 0.2.0 — 2017-08-02
- 0.1.2 — 2017-05-12

## README

# NoCMS Events

Global events for NoCMS.

[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Dependency Status](https://david-dm.org/miles-no/nocms-events.svg)](https://david-dm.org/miles-no/nocms-events)
[![devDependencies](https://david-dm.org/miles-no/nocms-events/dev-status.svg)](https://david-dm.org/miles-no/nocms-events?type=dev)

## Installation

Install nocms-events from NPM and include it in your own React build process (using [Browserify](http://browserify.org), [Webpack](http://webpack.github.io/), etc).

```
npm install nocms-events --save
```

## Usage

```
import events from 'nocms-events';

events.trigger('form_sent', this.props.store);
```

## API

### listenTo, (eventName, function)
Listen to an event with specified name, and call the function when the event occurs

### stopListenTo, (eventName, function)
Stop listen to the event

### trigger, (eventName, args)
Trigger an event with the specified name and calls each listener's function with the supplied args

## Commit message format and publishing

This repository is published using `semantic-release`, with the default [AngularJS Commit Message Conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit).

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