# @mongodb-model/schema

> schema

Latest version **0.0.10** (published 2022-12-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mongodb-model/schema
pnpm add @mongodb-model/schema
yarn add @mongodb-model/schema
bun add @mongodb-model/schema
```

Provides the command `schema`.

## 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.10 |
| Published | 2022-12-29 |
| First published | 2022-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 46.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ericson S. Weah |
| Maintainers | eweah, afrosintech |
| Keywords | schema, stream, duplex, transform, eventEmitter |

## Links

- npm: https://www.npmjs.com/package/@mongodb-model/schema
- Repository: https://github.com/mongodb-model/schema
- Homepage: https://github.com/mongodb-model/schema#readme
- Issues: https://github.com/mongodb-model/schema/issues
- npm.io page: https://npm.io/package/@mongodb-model/schema

## Dependencies (2)

- [dotenv](https://npm.io/package/dotenv.md) 16.0.3
- [vitest](https://npm.io/package/vitest.md) 0.25.1

## 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

- 0.0.10 (latest) — 2022-12-29
- 0.0.0 — 2022-11-13

## README

# Base

 Standalone base module extending the NodeJs Transform API with few other functionalities added

### Installation

```bash
$ yarn add @mongodb-model/schema 

```
 or 

```bash

$ npm i @mongodb-model/schema

```

### Simple Usage Example

```bash
 const Base = require('@mongodb-model/schema');
 const base = new Base();
 base.apiGet();
 base.on('apiGet', data => console.log(data));
 base.on('apiGet-error', error => console.error(error));
 
```
or 
```bash
 class MyWonderfulClass extends require('@mongodb-model/schema') {

    constructor(...arrayOfObjects) {

    super({ objectMode: true, encoding: "utf-8", autoDestroy: true });

    arrayOfObjects.forEach(option => {
        if(Object.keys(option).length > 0){
            Object.keys(option).forEach((key) => { if(!this[key]) this[key] = option[key];})
        }
    });

    this.autobind(MyWonderfulClass);
    this.autoinvoker(MyWonderfulClass);
    this.setMaxListeners(Infinity);
  }
 };
 
```

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