# hemera-request-clear

> Hemera Request Clear Plugin

Latest version **1.0.0** (published 2019-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install hemera-request-clear
pnpm add hemera-request-clear
yarn add hemera-request-clear
bun add hemera-request-clear
```

## 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.0.0 |
| Published | 2019-05-27 |
| First published | 2019-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | FelipeBarrosCruz |
| Maintainers | kenoby |

## Links

- npm: https://www.npmjs.com/package/hemera-request-clear
- Repository: https://github.com/Kenoby-Labs/hemera-request-clear
- Homepage: https://github.com/Kenoby-Labs/hemera-request-clear#readme
- Issues: https://github.com/Kenoby-Labs/hemera-request-clear/issues
- npm.io page: https://npm.io/package/hemera-request-clear

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [hemera-plugin](https://npm.io/package/hemera-plugin.md) ^2.0.1

## Recent versions

- 1.0.0 (latest) — 2019-05-27

## README

# hemera-request-clear  

![npm](https://img.shields.io/badge/npm-v5.6.1-blue.svg) ![node](https://img.shields.io/badge/node-v8.11.3-brightgreen.svg) 
  
## About

The hemera-request-clear is a plugin to help clear the request with defaults pattern

## Setup

```js
const  HemeraRequestPlugin = require('hemera-request-clear')
const  hemera = new  Hemera(nats)
hemera.use(HemeraRequestPlugin, {
  fields: [
    'topic',
    'cmd'
  ]
})
```

## Usage

```js
hemera.add({
  topic:  'hemera-request-clear',
  cmd:  'test'
}, async (request) => {
  const  optionalFields = ['opt']
  request = hemera.requestClear(request, optionalFields)
})
```

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