# craydent-event

> Node module to simplify code for maintainability and readability for event handling

Latest version **1.0.2** (published 2024-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install craydent-event
pnpm add craydent-event
yarn add craydent-event
bun add craydent-event
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2024-09-20 |
| First published | 2024-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 21.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Clark Inada |
| Maintainers | craydent |
| Keywords | Event, EventEmitter, EventTarget, craydent, es6, event, jquery, library, sugar, utilities |

## Links

- npm: https://www.npmjs.com/package/craydent-event
- Repository: https://github.com/craydent/Node-Library
- Homepage: https://github.com/craydent/Node-Library/tree/master/modules/typeof
- Issues: https://github.com/craydent/Node-Library/issues
- npm.io page: https://npm.io/package/craydent-event

## Dependencies (7)

- [craydent.on](https://npm.io/package/craydent.on.md) 1.0.2
- [craydent.off](https://npm.io/package/craydent.off.md) 1.0.2
- [craydent.emit](https://npm.io/package/craydent.emit.md) 1.0.2
- [craydent.once](https://npm.io/package/craydent.once.md) 1.0.2
- [craydent.include](https://npm.io/package/craydent.include.md) 1.0.2
- [craydent.globalize](https://npm.io/package/craydent.globalize.md) 1.0.2
- [craydent.removealllisteners](https://npm.io/package/craydent.removealllisteners.md) 1.0.2

## 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.0.2 (latest) — 2024-09-20
- 1.0.1 — 2024-08-30
- 1.0.0 — 2024-08-23

## README

<img src="http://craydent.com/JsonObjectEditor/img/svgs/craydent-logo.svg" width=75 height=75/>

# Craydent 1.0.2
**by Clark Inada**

Craydent is all inclusive utility library.  There are several ways to use the library in NodeJS.
More detailed documentation on constants can be found at [Craydent Properties](http://www.craydent.com/JsonObjectEditor/docs.html#/property/CraydentNode).
More detailed documentation on methods can be found at [Craydent Methods](http://www.craydent.com/JsonObjectEditor/docs.html#/method/CraydentNode)

```js
// require with prototypes - this require will add prototypes to extend classes and add two constants ($c, $g) to the global space.
// $g is an alias to global and $c is the constant containing all the utility methods and properties.
require('craydent-event');
$c.logit($c.VERSION);
arr.prototypedMethod(args);
```

```js
// require no conflict - this require is the fully modular version with no global constants, prototypes, or methods.
var $c = require('craydent-event/noConflict');
$c.logit($c.VERSION);
$c.prototypedMethod(arr, args);
```

```js
// require global - this require constants and methods in the global space and add prototypes to extend classes.
// $g is an alias to global and $c is the constant containing all the utility methods and properties.
require('craydent-event/global');
logit($c.VERSION);
arr.prototypedMethod(args);
```

## Categories

* [Constants](#markdown-header-constants)
* [Event](#markdown-header-event)

<a name='markdown-header-constants'></a>
## Constants

| | | |
| ----- | ----- | ----- |
| CONSOLE_COLORS (Object) |LOCAL_IP (String) |TEMPLATE_TAG_CONFIG (Object) |
DEBUG_MODE (Boolean) |MODULES_LOADED (Object) |TEMPLATE_VARS (Array) |
ERROR_TYPES (Array) |PUBLIC_IP (String) |VERSION (String) |
HTTP_STATUS_TEMPLATE (Object) |RESPONSES (Object) |


## Methods

<a name='markdown-header-event'></a>
## Event

*** 
#### _off_ 
***

**Info:** Method to remove a registered events

**Return:** (Boolean)

**Parameters:**

>* event: (String) Event to listen on and invoked on emit
>* func: (Function) Function given when registering

**Overloads:**

>None

*** 
#### _on_ 
***

**Info:** Method to register events

**Return:** (Boolean)

**Parameters:**

>* event: (String) Event to listen on and invoked on emit
>* func: (Function) Function to call on emit

**Overloads:**

>None

*** 
#### _once_ 
***

**Info:** Method to register events once

**Return:** (Boolean)

**Parameters:**

>* event: (String) Event to listen on and invoked on emit
>* func: (Function) Function to call on emit

**Overloads:**

>None

*** 
#### _removeAllListeners_ 
***

**Info:** Method to remove a registered events

**Return:** (void)

**Parameters:**

>* event?: (String) Event name to remove

**Overloads:**

>None




## Download

 * [GitHub](https://github.com/craydent/node-library/modules/event)
 * [BitBucket](https://bitbucket.org/craydent/node-library/modules/event)
 * [GitLab](https://gitlab.com/craydent/node-library/modules/event)
Craydent is released under the [Dual licensed under the MIT or GPL Version 2 licenses](http://craydent.com/license).<br>

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