{"_id":"file","_rev":"143145","name":"file","description":"Higher level path and file manipulation functions.","dist-tags":{"latest":"0.2.2"},"maintainers":[{"name":"aconbere","email":"aconbere@gmail.com"}],"time":{"modified":"2021-06-03T11:28:13.000Z","created":"2012-02-11T23:16:33.552Z","0.2.2":"2014-02-21T00:10:33.804Z","0.2.1":"2012-04-25T13:34:57.502Z","0.1.1":"2012-02-11T23:16:33.552Z","0.2.0":"2012-02-11T23:16:33.552Z"},"users":{"fgribreau":true,"tunnckocore":true,"rdegges":true,"fill":true,"drittich":true,"beemi":true,"katy":true,"pillar0514":true,"sarnsdev":true,"alexpearly":true},"author":{"name":"Anders Conbere","email":"aconbere@gmail.com"},"repository":{"type":"git","url":"http://github.com/aconbere/node-file-utils.git"},"versions":{"0.2.2":{"name":"file","description":"Higher level path and file manipulation functions.","tags":["file","path","fs","walk"],"version":"0.2.2","author":{"name":"Anders Conbere","email":"aconbere@gmail.com"},"directories":{"lib":"lib"},"repository":{"type":"git","url":"http://github.com/aconbere/node-file-utils.git"},"bugs":{"url":"http://github.com/aconbere/node-file-utils"},"main":"./lib/file","license":"MIT","devDependencies":{"mocha":"1.9.x"},"homepage":"https://github.com/aconbere/node-file-utils","_id":"file@0.2.2","dist":{"shasum":"c3dfd8f8cf3535ae455c2b423c2e52635d76b4d3","size":3809,"noattachment":false,"key":"/file/-/file-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/file/download/file-0.2.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"aconbere","email":"aconbere@gmail.com"},"maintainers":[{"name":"aconbere","email":"aconbere@gmail.com"}],"publish_time":1392941433804,"_cnpm_publish_time":1392941433804,"_hasShrinkwrap":false},"0.2.1":{"name":"file","description":"Higher level path and file manipulation functions.","tags":["file","path","fs","walk"],"version":"0.2.1","author":{"name":"Anders Conbere","email":"aconbere@gmail.com"},"directories":{"lib":"lib"},"repository":{"type":"git","url":"git://github.com/aconbere/node-file-utils.git"},"bugs":{"url":"http://github.com/aconbere/node-file-utils"},"main":"./lib/file","_npmUser":{"name":"aconbere","email":"aconbere@gmail.com"},"_id":"file@0.2.1","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"4161ce02dc888a8aef61c1fe9a1179f50d0fd24b","size":3135,"noattachment":false,"key":"/file/-/file-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file/download/file-0.2.1.tgz"},"maintainers":[{"name":"aconbere","email":"aconbere@gmail.com"}],"publish_time":1335360897502,"_cnpm_publish_time":1335360897502,"_hasShrinkwrap":false},"0.1.1":{"name":"file","description":"Higher level path and file manipulation functions.","tags":["file","path","fs","walk"],"version":"0.1.1","author":{"name":"Anders Conbere","email":"aconbere@gmail.com"},"directories":{"lib":"lib"},"repository":{"type":"git","url":"http://github.com/mikeal/node-utils.git"},"bugs":{"web":"http://github.com/mikeal/node-utils/issues"},"engines":["node >=0.1.90"],"main":"./lib/main","_id":"file@0.1.1","_nodeSupported":true,"_npmVersion":"0.2.7-2","_nodeVersion":"v0.3.1-pre","dist":{"shasum":"aa3a1b77cab16a3b40be8e29782608c6dd64644b","size":5478,"noattachment":false,"key":"/file/-/file-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/file/download/file-0.1.1.tgz"},"publish_time":1329002193552,"maintainers":[{"name":"aconbere","email":"aconbere@gmail.com"}],"_cnpm_publish_time":1329002193552,"_hasShrinkwrap":false},"0.2.0":{"name":"file","description":"Higher level path and file manipulation functions.","tags":["file","path","fs","walk"],"version":"0.2.0","author":{"name":"Anders Conbere","email":"aconbere@gmail.com"},"directories":{"lib":"lib"},"repository":{"type":"git","url":"git://github.com/aconbere/node-file-utils.git"},"bugs":{"url":"http://github.com/aconbere/node-file-utils"},"main":"./lib/file","_npmUser":{"name":"aconbere","email":"aconbere@gmail.com"},"_id":"file@0.2.0","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"f8d8e34415ecde15aa2dab91170ec6d6dc85c5fd","size":3138,"noattachment":false,"key":"/file/-/file-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/file/download/file-0.2.0.tgz"},"maintainers":[{"name":"aconbere","email":"aconbere@gmail.com"}],"publish_time":1329002193552,"_cnpm_publish_time":1329002193552,"_hasShrinkwrap":false}},"readme":"# File - Common higher level file and path operations\n\n## Install\n\n<pre>\n  npm install file\n</pre>\n\n<pre>\n  var file = require(\"file\");\n</pre>\n\n## API\n\n### file.walk(start, callback)\n\nNavigates a file tree, calling callback for each directory, passing in (null, dirPath, dirs, files).\n\n\n### file.walkSync(start, callback)\n\nSynchronus version of file.walk, calling callback for each directory, passing in (dirPath, dirs, files).\n\n\n### file.mkdirs(path, mode, callback)\n\nMakes all the directories in a path. (analgous to mkdir -P) For example given a path like \"test/this/path\" in an empty directory, mkdirs would make the directories \"test\", \"this\" and \"path\".\n\n\n### file.mkdirsSync(path, mode)\n\nLike file.mkdirs but synchronous.\n\n\n### file.path.abspath(path)\n\nExpands \".\", \"..\", \"~\" and non root paths to their full absolute path. Relative paths default to being children of the current working directory.\n\n\n### file.path.relativePath(root, fullPath)\n\nGiven a root path, and a fullPath attempts to diff between the two to give us an acurate path relative to root.\n\n\n### file.path.join(head, tail)\n\nJust like path.join but haves a little more sanely when give a head equal to \"\". file.path.join(\"\", \"tail\") returns \"tail\", path.join(\"\", \"tail\") returns \"/tail\"\n","_attachments":{},"homepage":"https://github.com/aconbere/node-file-utils","bugs":{"url":"http://github.com/aconbere/node-file-utils"},"license":"MIT"}