Giter Site home page Giter Site logo

cdjs's People

Contributors

zocky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cdjs's Issues

window.webkitStorageInfo is deprecated

Getting the following error in chrome:

window.webkitStorageInfo is deprecated. Use navigator.webkitTemporaryStorage or navigator.webkitPersistentStorage instead.

Request for comments and feature requests

I would appreciate input on the following issues:

  • all callbacks now receive "done" as the first argument. This was handy while writing the library, and is often more natural when writing callbacks for .then, but it feels unwieldy for other callbacks (.for, .ls, .read, etc.), because in the typical case that you aren't making any async calls in the callback, you won't be using done() in your functions at all. The question is: (a) should the order of the arguments be switched, and (b) if yes, should this change apply to all callbacks, including those for .then, i.e. should we sacrifice some comfort for consistency?
  • how should .read / .write handle file types? The ability to pass e.g. an Image object to .write (which I intend to implement) seems straightforward, but what should happen on .read()? Should the callback for .read() get an instantiated and loaded Image object, or a Blob or what?
  • does adding .try() and .catch() methods for error handling sound like a good idea? e.g.
    cd().try().rm('/nodir/nofile.txt').catch(function (done,err) { /* handle errors */ })
  • and of course, general comments and feature requests are more than welcome.

Cannot get demo to work

Cloned repo and opened filebrowser.html. Received warning to which I hit OK. Then nothing appeared.

Using Chrome with --allow-file-access-from-files flag

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.