0.0.3 • Published 12 years ago

panther v0.0.3

Weekly downloads
6
License
-
Repository
github
Last release
12 years ago

Panther is a way to search through an array of JSON objects and get returned an array of matching JSON objects.

npm install panther

Example (see also: example.js)

var panther = require('panther');
//data is an array of JSON objects
var data = [{name:'matt', age:'17'}, {name:'oscar', age:'73'}];
var searchTerm = 'matt';

panther.search(function(err, items) {
  if (err) {
    console.log(err);
  } else {
    console.log(items); //items is an array of matching JSON objects
  }
}, searchTerm, data);
0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago

0.0.0

12 years ago