{"name":"vow-fs","version":"0.0.2","description":"File I/O by Vow","homepage":"https://github.com/dfilatov/vow-fs","keywords":["vow","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":{},"peerDependencies":{"vow":"0.1.x"},"devDependencies":{"vow":"0.1.x"},"main":"lib/fs","engines":{"node":">= 0.6.0"},"_id":"vow-fs@0.0.2","dist":{"shasum":"55c68c4fd6f5450247e66f3f2d460c5810edc332","tarball":"http://registry-npm.ywwl.com/vow-fs/download/vow-fs-0.0.2.tgz","integrity":"sha512-3QjnNvteE92F8u8D3P1bZ3vwju/KWUe4upSHniD8Z3gCs0Hp1bednBIOqwm2uChrrsBLhb0P/NEZKUGbXN9Bvw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3iGchsx1mZdDYuVBCCWni2eqvy/B8jDmq27lEQjJXqgIgOfRAl678Y5qNegD2T5jTzBLrtzn6b7/WhV0R3XNHZv8="}],"size":1524,"noattachment":false,"key":"/vow-fs/-/vow-fs-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.11","_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":1362752844747,"_cnpm_publish_time":1362752844747,"dist-tags":{"latest":"0.3.6"}}