JSPM

os-filter-obj

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1516832
  • Score
    100M100P100Q196558F
  • License MIT

Filter an array of objects to a specific OS

Package Exports

  • os-filter-obj

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (os-filter-obj) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

os-filter-obj Build Status

Filter an array of objects to a specific OS

Install

$ npm install --save os-filter-obj

Usage

var osFilterObj = require('os-filter-obj');

var arr = [{
    foo: 'linux-x64',
    os: 'linux',
    arch: 'x64'
}, {
    foo: 'darwin-x64',
    os: 'darwin',
    arch: 'x64'
},{
    foo: 'win32-x64',
    os: 'win32',
    arch: 'x64'
}];

osFilterObj(arr);
//=> [{ foo: 'linux-x64' }];

License

MIT © Kevin Mårtensson