You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 269B

1234567
  1. 'use strict';
  2. module.exports = input => {
  3. const arch = require('arch')();
  4. const check = (bool, key, val) => (!bool || !key || key === val);
  5. return input.filter(x => [process.platform, arch].every((y, i) => check(i === 0, x.os, y) && check(i === 1, x.arch, y)));
  6. };