Skip to content

A drop-in for the filesystem based off the GitHub API.

Notifications You must be signed in to change notification settings

swang/fs-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fs-github

A drop-in for the filesystem based off the GitHub API.

INSTALL

npm install fs-github

EXAMPLE

var fs = require("fs-github")("<github id>")

fs.readFile("<owner/repo/file>", function(err, data, metadata) {
  console.log(data)
})

PROGRESS

fs

  • fs.rename(oldPath, newPath, callback)
  • fs.ftruncate(fd, len, callback)
  • fs.truncate(path, len, callback)
  • fs.chown(path, uid, gid, callback)
  • fs.fchown(fd, uid, gid, callback)
  • fs.lchown(path, uid, gid, callback)
  • fs.chmod(path, mode, callback)
  • fs.fchmod(fd, mode, callback)
  • fs.lchmod(path, mode, callback)
  • fs.stat(path, callback)
  • fs.lstat(path, callback)
  • fs.fstat(fd, callback)
  • fs.link(srcpath, dstpath, callback)
  • fs.symlink(srcpath, dstpath, [type], callback)
  • fs.readlink(path, callback)
  • fs.realpath(path, [cache], callback)
  • fs.unlink(path, callback)
  • fs.rmdir(path, callback)
  • fs.mkdir(path, [mode], callback)
  • fs.readdir(path, callback)
  • fs.close(fd, callback)
  • fs.open(path, flags, [mode], callback)
  • fs.utimes(path, atime, mtime, callback)
  • fs.futimes(fd, atime, mtime, callback)
  • fs.write(fd, buffer, offset, length, position, callback)
  • fs.read(fd, buffer, offset, length, position, callback)
  • fs.readFile(filename, [options], callback)
  • fs.writeFile(filename, data, [options], callback)
  • fs.appendFile(filename, data, [options], callback)
  • fs.watchFile(filename, [options], listener)
  • fs.unwatchFile(filename, [listener])
  • fs.watch(filename, [options], [listener])
  • fs.exists(path, callback)
  • fs.createReadStream(path, [options])
  • fs.createWriteStream(path, [options])

fs.Stats

fs.ReadStream

  • fs.ReadStream
  • Event: 'open'

fs.writeStream

  • Event: 'open'
  • file.bytesWritten

fs.FSWatcher

  • watcher.close()
  • Event: 'change'
  • Event: 'error'

LICENSE

ISC

About

A drop-in for the filesystem based off the GitHub API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published