# object-handler

> A simple object handler for handling objects. Allows searching for required properties and things of that nature. Works really well with requests in express.

Latest version **0.0.5** (published 2017-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install object-handler
pnpm add object-handler
yarn add object-handler
bun add object-handler
```

## 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.5 |
| Published | 2017-08-18 |
| First published | 2017-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Raymond John Hill |
| Maintainers | theinfamousrj |
| Keywords | object, handler, required, parameters, node |

## Links

- npm: https://www.npmjs.com/package/object-handler
- Repository: https://github.com/theinfamousrj/objecthandler
- Homepage: https://github.com/theinfamousrj/objecthandler#readme
- Issues: https://github.com/theinfamousrj/objecthandler/issues
- npm.io page: https://npm.io/package/object-handler

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2017-08-18
- 0.0.4 — 2017-08-18
- 0.0.3 — 2017-08-18
- 0.0.2 — 2017-08-18
- 0.0.1 — 2017-08-18

## README

# object-handler
[![Build Status](https://travis-ci.org/theinfamousrj/objecthandler.svg?branch=master)](https://travis-ci.org/theinfamousrj/objecthandler)
[![Coverage Status](https://coveralls.io/repos/github/theinfamousrj/objecthandler/badge.svg?branch=master)](https://coveralls.io/github/theinfamousrj/objecthandler?branch=master)
[![Known Vulnerabilities](https://snyk.io/test/github/theinfamousrj/objecthandler/badge.svg)](https://snyk.io/test/github/theinfamousrj/objecthandler)

A simple object handler for handling objects. Allows searching for required properties and things of that nature. Works really well with requests in express.

# Install

```{r, engine='bash'}
$ npm install object-handler
```

# Use

Check an object for properties in an intuitive sort of way.

```javascript
const objHandler = require('object-handler');

let objectToCheck = { 
  someString: "Certainly a string.", 
  horse: true, 
  potion: 1, 
  obby: {
  
    deeper: true, 
    deepness: { 
      stophere: false, 
      evenDeeper: { 
        wow: 'that is deep', 
        right: { nope: 'we can go deeper' }
      }
    }
    
  }
};

let requiredProperties = ['someString', 'obby', 'obby.deepness.evenDeeper.wow'];

if( objHandler.hasRequiredProperties(objectToCheck, requiredProperties) ) {
  //do stuff with confidence 
};
```

# License
MIT License

Copyright (c) 2017 [Raymond John Hill](http://www.raymondjohnhill.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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