{
  "_args": [
    [
      {
        "raw": "wrench@https://github.com/derekslife/wrench-js/tarball/156eaceed68ed31ffe2a3ecfbcb2be6ed1417fb2",
        "scope": null,
        "escapedName": "wrench",
        "name": "wrench",
        "rawSpec": "https://github.com/derekslife/wrench-js/tarball/156eaceed68ed31ffe2a3ecfbcb2be6ed1417fb2",
        "spec": "https://github.com/derekslife/wrench-js/tarball/156eaceed68ed31ffe2a3ecfbcb2be6ed1417fb2",
        "type": "remote"
      },
      "/home/king/Desktop/FINAL/AhMyth/app/node_modules/semantic-ui"
    ]
  ],
  "_from": "https://github.com/derekslife/wrench-js/tarball/156eaceed68ed31ffe2a3ecfbcb2be6ed1417fb2",
  "_id": "wrench@1.5.8",
  "_inCache": true,
  "_installable": true,
  "_location": "/wrench",
  "_phantomChildren": {},
  "_requested": {
    "raw": "wrench@https://github.com/derekslife/wrench-js/tarball/156eaceed68ed31ffe2a3ecfbcb2be6ed1417fb2",
    "scope": null,
    "escapedName": "wrench",
    "name": "wrench",
    "rawSpec": "https://github.com/derekslife/wrench-js/tarball/156eaceed68ed31ffe2a3ecfbcb2be6ed1417fb2",
    "spec": "https://github.com/derekslife/wrench-js/tarball/156eaceed68ed31ffe2a3ecfbcb2be6ed1417fb2",
    "type": "remote"
  },
  "_requiredBy": [
    "/semantic-ui"
  ],
  "_resolved": "https://github.com/derekslife/wrench-js/tarball/156eaceed68ed31ffe2a3ecfbcb2be6ed1417fb2",
  "_shasum": "f266a8b95c5d7ac12d066214b36f5435b7833d1e",
  "_shrinkwrap": null,
  "_spec": "wrench@https://github.com/derekslife/wrench-js/tarball/156eaceed68ed31ffe2a3ecfbcb2be6ed1417fb2",
  "_where": "/home/king/Desktop/FINAL/AhMyth/app/node_modules/semantic-ui",
  "author": {
    "name": "Ryan McGrath",
    "email": "ryan@venodesigns.net"
  },
  "bugs": {
    "url": "http://github.com/ryanmcgrath/wrench-js/issues"
  },
  "dependencies": {},
  "description": "Recursive filesystem (and other) operations that Node *should* have.",
  "devDependencies": {
    "nodeunit": ">= 0.6.4"
  },
  "directories": {
    "lib": "./lib/"
  },
  "engines": {
    "node": ">=0.1.97"
  },
  "homepage": "https://github.com/ryanmcgrath/wrench-js#readme",
  "licenses": [
    {
      "type": "MIT",
      "url": "http://github.com/ryanmcgrath/wrench-js/raw/master/LICENSE"
    }
  ],
  "main": "./lib/wrench",
  "name": "wrench",
  "optionalDependencies": {},
  "readme": "wrench.js - Recursive file operations in Node.js\n----------------------------------------------------------------------------\nWhile I love Node.js, I've found myself missing some functions. Things like\nrecursively deleting/chmodding a directory (or even deep copying a directory),\nor even a basic line reader, shouldn't need to be re-invented time and time again.\n\nThat said, here's my attempt at a re-usable solution, at least until something\nmore formalized gets integrated into Node.js (*hint hint*). wrench.js is fairly simple\nto use - check out the documentation/examples below:\n\nPossibly Breaking Change in v1.5.0\n-----------------------------------------------------------------------------\nIn previous versions of Wrench, we went against the OS-default behavior of not\ndeleting a directory unless the operation is forced. In 1.5.0, this has been\nchanged to be the behavior people expect there to be - if you try to copy over\na directory that already exists, you'll get an Error returned or thrown stating\nthat you need to force it.\n\nSomething like this will do the trick:\n\n``` javascript\nwrench.copyDirSyncRecursive('directory_to_copy', 'location_where_copy_should_end_up', {\n    forceDelete: true\n});\n```\n\nIf you desire the older behavior of Wrench... hit up your package.json. If you\nhappen to find bugs in the 1.5.0 release please feel free to file them on the \nGitHub issues tracker for this project, or send me a pull request and I'll get to\nit as fast as I can. Thanks!\n\n**If this breaks enough projects I will consider rolling it back. Please hit me up if this seems to be the case.**\n\nInstallation\n-----------------------------------------------------------------------------\n\n    npm install wrench\n\nUsage\n-----------------------------------------------------------------------------\n``` javascript\nvar wrench = require('wrench'),\n\tutil = require('util');\n```\n\n### Synchronous operations\n``` javascript\n// Recursively create directories, sub-trees and all.\nwrench.mkdirSyncRecursive(dir, 0777);\n\n// Recursively delete the entire sub-tree of a directory, then kill the directory\nwrench.rmdirSyncRecursive('my_directory_name', failSilently);\n\n// Recursively read directories contents.\nwrench.readdirSyncRecursive('my_directory_name');\n\n// Recursively chmod the entire sub-tree of a directory\nwrench.chmodSyncRecursive('my_directory_name', 0755);\n\n// Recursively chown the entire sub-tree of a directory\nwrench.chownSyncRecursive(\"directory\", uid, gid);\n\n// Deep-copy an existing directory\nwrench.copyDirSyncRecursive('directory_to_copy', 'location_where_copy_should_end_up', {\n    forceDelete: bool, // Whether to overwrite existing directory or not\n    excludeHiddenUnix: bool, // Whether to copy hidden Unix files or not (preceding .)\n    preserveFiles: bool, // If we're overwriting something and the file already exists, keep the existing\n    preserveTimestamps: bool, // Preserve the mtime and atime when copying files\n    inflateSymlinks: bool, // Whether to follow symlinks or not when copying files\n    filter: regexpOrFunction, // A filter to match files against; if matches, do nothing (exclude).\n    whitelist: bool, // if true every file or directory which doesn't match filter will be ignored\n    include: regexpOrFunction, // An include filter (either a regexp or a function)\n    exclude: regexpOrFunction // An exclude filter (either a regexp or a function)\n});\n\n// Note: If a RegExp is provided then then it will be matched against the filename. If a function is\n//       provided then the signature should be the following:\n//       function(filename, dir) { return result; }\n\n// Read lines in from a file until you hit the end\nvar f = new wrench.LineReader('x.txt');\nwhile(f.hasNextLine()) {\n\tutil.puts(f.getNextLine());\n}\n\n// Note: You will need to close that above line reader at some point, otherwise\n// you will run into a \"too many open files\" error. f.close() or fs.closeSync(f.fd) are\n// your friends, as only you know when it is safe to close.\n```\n\n### Asynchronous operations\n``` javascript\n// Recursively read directories contents\nvar files = [];\nwrench.readdirRecursive('my_directory_name', function(error, curFiles) {\n    // curFiles is what you want\n});\n\n// If you're feeling somewhat masochistic\nwrench.copyDirRecursive(srcDir, newDir, {forceDelete: bool /* See sync version */}, callbackfn);\n```\n\nQuestions, comments? Hit me up. (ryan [at] venodesigns.net | http://twitter.com/ryanmcgrath)\n",
  "readmeFilename": "readme.md",
  "repository": {
    "type": "git",
    "url": "git+https://ryanmcgrath@github.com/ryanmcgrath/wrench-js.git"
  },
  "scripts": {
    "test": "nodeunit tests/runner.js"
  },
  "version": "1.5.8"
}
