ebidel/filer.js

unixy commands

Closed this issue · 1 comments

https://github.com/ebidel/filer.js/blob/master/README.md

filer.js takes a different approach by reusing familiar UNIX commands (cp, mv, ls)

create -> touch
open -> cat
write -> echo (as in echo foo > bar; debatable)

Are you aware of shelljs? It's the server-side equivalent of filer.js. It also has a ton more commands.

I could add aliases for those methods. touch especially makes sense to me. echo as a function call seems weird.

shelljs isn't the same. This library talks to the W3C HTML5 Filesystem API in the browser. AFAICT, shelljs implemented UNIX commands for node and working with the actual machine's filesystem.

webfs is the node library that is most similar.