Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
File I/O in jQuery way
JavaScript
tree: 6242d463d1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
.npmignore
LICENSE
README.md
index.js
package.json

README.md

qfs

File I/O in jQuery way.

Download

$ git clone git://github.com/tommy351/qfs.git

Example

// Get the stats synchronously
qfs(path).stat();

// Get the stats asynchronously
qfs(path).stat(function(err, stat){
    // do something
});

Documentaion

Status

path()

name()

dir()

ext()

stat([callback])

fstat([callback])

lstat([callback])

exists([callback])

Query

children([selector], [callback])

siblings([selector], [callback])

parent()

parents()

parentsUntil()

Filter

eq(index)

first()

last()

slice(start, [end])

filter(selector)

not(selector)

Traversing

each(iterator)

map(iterator)

I/O

mkdir(name, [callback])

rename(name, [callback])

remove([callback])

empty([callback])

write(data, [callback])

read([callback])

append(data, [callback])

content([data], [callback])

chmod(mode, [callback])

fchmod(mode, [callback])

lchmod(mode, [callback])

chown(uid, gid, [callback])

fchown(uid, gid, [callback])

lchown(uid, gid, [callback])

Utilities

toArray()

Something went wrong with that request. Please try again.