# os-filter-obj

> Filter an array of objects to a specific OS

Latest version **2.0.0** (published 2017-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install os-filter-obj
pnpm add os-filter-obj
yarn add os-filter-obj
bun add os-filter-obj
```

## 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 | 2.0.0 |
| Published | 2017-07-25 |
| First published | 2014-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Kevin Mårtensson |
| Maintainers | kevva |
| Keywords | arch, filter, obj, object, os |

## Links

- npm: https://www.npmjs.com/package/os-filter-obj
- Repository: https://github.com/kevva/os-filter-obj
- Homepage: https://github.com/kevva/os-filter-obj#readme
- Issues: https://github.com/kevva/os-filter-obj/issues
- npm.io page: https://npm.io/package/os-filter-obj

## Dependencies (1)

- [arch](https://npm.io/package/arch.md) ^2.1.0

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

- 2.0.0 (latest) — 2017-07-25
- 1.0.3 — 2015-02-09
- 1.0.2 — 2015-02-09
- 1.0.1 — 2015-02-09
- 1.0.0 — 2014-11-10

## README

# os-filter-obj [![Build Status](https://travis-ci.org/kevva/os-filter-obj.svg?branch=master)](https://travis-ci.org/kevva/os-filter-obj)

> Filter an array of objects to a specific OS


## Install

```
$ npm install os-filter-obj
```


## Usage

```js
const osFilterObj = require('os-filter-obj');

const objects = [{
	os: 'linux',
	arch: 'x64',
	foo: 'unicorn',
	bar: 'cow'
}, {
	os: 'darwin',
	arch: 'x64',
	foo: 'unicorn',
	bar: 'cow'
},{
	os: 'win32',
	arch: 'x64',
	foo: 'unicorn',
	bar: 'cow'
}];

osFilterObj(objects);
/*
	[{
		os: 'linux',
		arch: 'x64',
		foo: 'unicorn',
		bar: 'cow'
	}];
*/
```


## API

### osFilterObj(objects)

Returns an `Array` with the filtered objects.

#### objects

Type: `Array`

The `Array` to filter.


## License

MIT © [Kevin Mårtensson](https://github.com/kevva)

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