Skip to content

PeerSocial-io/gunfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gunfs

npm install gunfs

var GunFS = require("gunfs");//GunFS(dbRoot, FileSystemKey)
var gunfs = new GunFS(gun.get("you place the spot where files are"), "and you can have multipul sets in the spot");

gunfs.write(path, value, callback)  callback(err, gunResponce)<--

gunfs.read(path, callback, gunResponce)  callback(err, gunResponce ? gunResponceObject : gunResponceObject.value)<--

gunfs.delete(path, callback)  callback(err, true)<--

gunfs.list(callback) callback(err, [{ path, value, id, ct, mt }]);
gunfs.list(path, callback) callback(err, [{ path, value, id, ct, mt }]);

gunfs.stats(path, callback) callback(err, { path, id, ct, mt })
            
gunfs.exist(path, callback) callback(err,true||null)

Events

gunfs.on("*", callback)  callback(fileObject, gunResponce, gunId, gunMsg, gunEv)
gunfs.on(path, callback)  callback(fileObject, gunResponce, gunId, gunMsg, gunEv)

https://github.com/bmatusiak

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published