localStorage doesn't have an unlimited amount of space, and just
throws an error when you try to save to it when its full.
gracefully handles saving data to localStorage: when you run out of room
it simply removes the earliest item(s) saved and sends them to a
callback giving you the option to do something with them.
fifo also stores all of your
key:value pairs on one key
localStorage for better performance.
fifo assumes the browser has
JSON. This is not a
fifo source is written in coffeescript (like wearing stretchy
pants when you become a man, it's for fun), you can install it by
npm install . from the root of this repository. Also, run
./watch to have the coffeescript automatically compile as you save.
Test by opening
test.html in a browser.