{"name":"vow-fs","version":"0.2.2","description":"File I/O by Vow","homepage":"https://github.com/dfilatov/vow-fs","keywords":["vow","promise","file system"],"author":{"name":"Dmitry Filatov","email":"dfilatov@yandex-team.ru"},"contributors":[{"name":"Dmitry Filatov","email":"dfilatov@yandex-team.ru"}],"repository":{"type":"git","url":"http://github.com/dfilatov/vow-fs.git"},"dependencies":{"node-uuid":"1.4.0","vow-queue":"0.0.2"},"peerDependencies":{"vow":">= 0.3.9"},"devDependencies":{"vow":">= 0.3.9","nodeunit":"","istanbul":""},"main":"lib/fs","engines":{"node":">= 0.6.0"},"scripts":{"test":"./node_modules/istanbul/lib/cli.js test test/runner.js"},"bugs":{"url":"https://github.com/dfilatov/vow-fs/issues"},"_id":"vow-fs@0.2.2","dist":{"shasum":"ba36e7275ecf184c1c9a699ba82fb0f80f698bce","tarball":"http://registry-npm.ywwl.com/vow-fs/download/vow-fs-0.2.2.tgz","integrity":"sha512-HyBOUmIQnVYOC4eU52SXIO0ZYOWkSnlJzrW9jrF7NR82xGGAbBTDHWe47PQaUPc+zxcRV8a/u3RB3axMry1RPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDt8d3SDeqbMDttP2Zbbr7d9yuqR+GXrq+RwUDRBnY5eQIgGZie2gshV3jkzzC9UqYrL6kUFcYNMVc8vimLnef8D+8="}],"size":5134,"noattachment":false,"key":"/vow-fs/-/vow-fs-0.2.2.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"dfilatov","email":"dfilatov@yandex-team.ru"},"maintainers":[{"name":"dfilatov","email":"dfilatov@yandex-team.ru"}],"directories":{},"readme":"vow-fs [![NPM version](https://badge.fury.io/js/vow-fs.png)](http://badge.fury.io/js/vow-fs) [![Build Status](https://secure.travis-ci.org/dfilatov/vow-fs.png)](http://travis-ci.org/dfilatov/vow-fs)\n======\n\n[Vow](https://github.com/dfilatov/vow)-based file I/O for Node.js\n\nRequirements\n------------\nVow-fs works with Node.js 0.6 and above.\n\nGetting Started\n---------------\nYou can install vow-fs using Node Package Manager (npm):\n\n    npm install vow-fs\n\n####Usage####\n````javascript\nvar fs = require('vow-fs');\n````\n\nAPI\n---\n####read(path, [encoding])####\nReturns a promise for the file's content at a given ````path````.\n####write(path, data, [encoding])####\nWrites ````data```` to file at a given ````path````. Returns a promise for the completion of the operation.\n####append(path, data, [encoding])####\nAppends````data```` to file's content at a given ````path````. Returns a promise for the completion of the operation.\n####remove(path)####\nRemoves a file at a given ````path````. Returns a promise for the completion of the operation.\n####copy(sourcePath, targetPath)####\nCopies a file from ````sourcePath```` to ````targetPath````. Returns a promise for the completion of the operation.\n####move(sourcePath, targetPath)####\nMoves a file or directory from ````sourcePath```` to ````targetPath````. Returns a promise for the completion of the operation.\n####stat(path)####\nReturns a promise for the metadata about the given ````path```` as a [Stats](http://nodejs.org/api/fs.html#fs_class_fs_stats) object.\n####exists(path)####\nReturns a promise for whether the given ````path```` exists.\n####link(sourcePath, targetPath)####\nCreates a hard link from the ````sourcePath```` to ````targetPath````.\n####symLink(sourcePath, targetPath, [type=file])####\nCreates a symbolic link from the ````sourcePath```` to ````targetPath````.\n####chown(path, uid, gid)####\nChanges the owner of a given ````path````.\n####chmod(path, mode)####\nChanges the mode of a given ````path```` to ````mode````.\n####absolute(path)####\n####isFile(path)####\nReturns a promise for whether the given ````path```` is a file.\n####isDir(path)####\nReturns a promise for whether the given ````path```` is a directory.\n####isSocket(path)####\nReturns a promise for whether the given ````path```` is a socket.\n####isSymLink(path)####\nReturns a promise for whether the given ````path```` is a symbolic link.\n####makeTmpFile([options])####\nMakes a temporary file. Returns a promise with generated path to file.\nThe ````options````:\n  * prefix (absent by default)\n  * dir (operating system's directory for temp files by default)\n  * ext (````.tmp```` by default)\n\n####listDir(path)####\nReturns a promise for a list of files and directories in directory at the given ````path````.\n####makeDir(path, [mode=0777], [failIfExist=false])####\nMakes a directory at a given ````path```` and any necessary subdirectories (like ````mkdir -p````). Returns a promise for the completion of the operation.\n####removeDir(path)####\nRecursively removes a directory at a given path (like ````remove -rf````). Returns a promise for the completion of the operation.\n####glob(pattern, [options])####\nMatches files using the patterns. See https://github.com/isaacs/node-glob for details.\n","publish_time":1373310278872,"_cnpm_publish_time":1373310278872,"dist-tags":{"latest":"0.3.6"}}