Novices Performing Miracles
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

folsom

0.1.0 • Public • Published

folsom

Searchable in-memory object cache

build status

example

var folsom = require('../index.js')
  , people = folsom('people')
 
// Set searchable key
people.index('name')
 
people.add([
  {name: 'Sue'},
  {name: 'Suzie'},
  {name: 'Susan'},
  {name: 'Suzanne'},
  {name: 'El Suzerino'},
  {name: 'The Suzster'}
])
 
people.search('suz', function(err, results) {
  // results === [
  //   {name: 'Suzanne'},
  //   {name: 'Suzie'},
  //   {name: 'El Suzerino'},
  //   {name: 'The Suzster'}
  // ]
})

install

With npm do:

npm install folsom

license

MIT

Keywords

none

install

npm i folsom

Downloadsweekly downloads

2

version

0.1.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar