How to use the caniuse-api.find function in caniuse-api

To help you get started, we’ve selected a few caniuse-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CoderMageFox / alfredMagic / CanIUse / caniuse.js View on Github external
findName(input){
        let alfyResultArr = [];
        let inputGuess = CanIUse.find(input);
        //此逻辑用于判断精准查询,代码层面可后续优化
        if (input === CanIUse.find(input)){
            alfyResultArr.push(this.preciseQuery(input))
        }else
        inputGuess.map((item)=>{
            alfyResultArr.push(this.preciseQuery(item))
        });
        alfy.output(alfyResultArr)
    }
    //格式化拿到的数据
github CoderMageFox / alfredMagic / CanIUse / caniuse.js View on Github external
findName(input){
        let alfyResultArr = [];
        let inputGuess = CanIUse.find(input);
        //此逻辑用于判断精准查询,代码层面可后续优化
        if (input === CanIUse.find(input)){
            alfyResultArr.push(this.preciseQuery(input))
        }else
        inputGuess.map((item)=>{
            alfyResultArr.push(this.preciseQuery(item))
        });
        alfy.output(alfyResultArr)
    }
    //格式化拿到的数据
github agauniyal / vscode-caniuse / src / utils.js View on Github external
function provideMatches(feature) {
  let matches = [];
  try {
    matches = api.find(feature);
  } catch (e) {} finally {
    return matches;
  }
}

caniuse-api

request the caniuse data to check browsers compatibilities

MIT
Latest version published 6 years ago

Package Health Score

73 / 100
Full package analysis