4

Looking for a solid filesystem implementation that works with Safari and Chrome.

My ideal API looks like shelljs:

// write
'hello world'.to('greeting.txt');

// read
var str = cat('greeting.txt');

I should clarify that I'm looking for a place to put data and treat it like files, but it doesn't have to actually write to files on disk.

I'm expecting a fully cross browser solution will likely need to use indexeddb and websql, except on Chrome. localStorage is not desired because it can only hold small amounts of data.

Safari support is a must, so need something that can work with websql, perhaps through the indexeddb polyfill

Here's an example of one library that seems to be pretty close to what I'm looking for: filer.

Interested to see what other options people think are good.

  • 1
    We will need much more information to give good recommendations here. Please take a look at What is required for a question to contain "enough information"? Then please edit your question and see if you can incorporate some of these improvements. For example, include a detailed list of the features you need. – ProgramFOX Apr 28 '14 at 16:33
  • Deleted my old answer as with the updated details it really doesn't fit instead of barely fitting. I haven't used it yet but localForage might be an ideal polyfill - it supports IndexedDB and WebSQL and then falls back to localStorage if needed. It looks quite good but I haven't really used it yet. – Nick Wilde Apr 28 '14 at 21:56
  • 1
    @NickWilde Thanks for the answer and your comment. I didn't get any answers from a couple other questions so that's why I didn't want to ratchet it down too much with specificity. But I think the additional detail is a good thing to have in the question. – funroll Apr 29 '14 at 12:31
  • 1
    So what's wrong with localForage or Filer? – Farid Nouri Neshat Apr 19 '15 at 4:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.