# mongo-query-sanitizer

> Recursively remove the dollar prefix from object keys

Latest version **1.0.0** (published 2017-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install mongo-query-sanitizer
pnpm add mongo-query-sanitizer
yarn add mongo-query-sanitizer
bun add mongo-query-sanitizer
```

## 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 | 2017-08-02 |
| First published | 2017-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Derek Stavis |
| Maintainers | derekstavis |
| Keywords | mongo, mongodb, query, sanitizer |

## Links

- npm: https://www.npmjs.com/package/mongo-query-sanitizer
- npm.io page: https://npm.io/package/mongo-query-sanitizer

## Dependencies (1)

- [ramda](https://npm.io/package/ramda.md) ^0.24.1

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-08-02

## README

# Mongo Query Sanitizer

Sanitizes objects by recursively removing the dolar prefix from object keys.

Returns a new object instead of directly mutating the original object.

## Usage

Install the package from npm

```sh
$ npm install mongo-query-sanitizer
```

Sanitize queries

```js
const sanitize = require('mongo-query-sanitizer')

const query = {
  $set: { name: 'Foo' },
}

console.log(sanitize(query))

// {
//   set: { name: 'Foo' },
// }
```

## License

Copyright (c) 2017 Derek Willian Stavis
MIT License

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