项目作者: coderaiser

项目描述 :
find string in list by pattern
高级语言: JavaScript
项目地址: git://github.com/coderaiser/limier.git
创建时间: 2015-12-02T18:31:04Z
项目社区:https://github.com/coderaiser/limier

开源协议:MIT License

下载


limier License NPM version Dependency Status Build Status Coverage Status

Find string in list by pattern. This is how open in Chrome Developer Tools and WebStorm works.

Install

  1. npm i limier --save

How to use?

  1. const limier = require('limier');
  2. limier('hello', ['hello', 'world']);
  3. // returns
  4. ['hello'];
  5. limier('bwiw', ['hello', 'biggestWordInAWorld']);
  6. // returns
  7. ['biggestWordInAWorld']
  8. limier('abc', ['hello', 'biggestWordInAWorld']);
  9. // returns
  10. []

License

MIT