noolan / search-light

Collection filtering library with an easy to read interface

Home Page:https://noolan.github.io/search-light/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SearchLight

JavaScript searching and filtering with an easy to read interface and a focus on speed and low memory usage.

Installation

NPM

npm install search-light

Yarn

yarn add search-light

CDN

<script src="https://unpkg.com/search-light"></script>

Usage

ES6

import search from 'search-light';
let matches = search(collection).for('search text')
                                .and('list')
                                .matches

CDN

var matches = window.searchLight
  .search(collection)
  .for('search text')
  .and('list')
  .matches

TODO

  • Add code style linting
  • More examples in the documentation
  • Automated testing

About

Collection filtering library with an easy to read interface

https://noolan.github.io/search-light/


Languages

Language:JavaScript 93.6%Language:HTML 6.4%