{
  "_args": [
    [
      "replace@https://registry.npmjs.org/replace/-/replace-0.3.0.tgz",
      "/Users/nw/flint/packages/flint"
    ]
  ],
  "_from": "replace@0.3.0",
  "_id": "replace@0.3.0",
  "_inCache": true,
  "_location": "/replace",
  "_phantomChildren": {
    "lru-cache": "2.7.3",
    "sigmund": "1.0.1"
  },
  "_requested": {
    "name": "replace",
    "raw": "replace@https://registry.npmjs.org/replace/-/replace-0.3.0.tgz",
    "rawSpec": "https://registry.npmjs.org/replace/-/replace-0.3.0.tgz",
    "scope": null,
    "spec": "https://registry.npmjs.org/replace/-/replace-0.3.0.tgz",
    "type": "remote"
  },
  "_requiredBy": [
    "/"
  ],
  "_resolved": "https://registry.npmjs.org/replace/-/replace-0.3.0.tgz",
  "_shasum": "60081721188658595ab6a794eb7fedcb4c8d39c7",
  "_shrinkwrap": null,
  "_spec": "replace@https://registry.npmjs.org/replace/-/replace-0.3.0.tgz",
  "_where": "/Users/nw/flint/packages/flint",
  "author": {
    "email": "fayearthur@gmail.com",
    "name": "Heather Arthur"
  },
  "bin": {
    "replace": "./bin/replace.js",
    "search": "./bin/search.js"
  },
  "bugs": {
    "url": "https://github.com/harthur/replace/issues"
  },
  "dependencies": {
    "colors": "0.5.x",
    "minimatch": "~0.2.9",
    "nomnom": "1.6.x"
  },
  "description": "Command line search and replace utility",
  "devDependencies": {
    "tape": "~0.2.2"
  },
  "homepage": "https://github.com/harthur/replace#readme",
  "keywords": [
    "grep",
    "replace",
    "search",
    "sed"
  ],
  "license": "MIT",
  "main": "replace.js",
  "name": "replace",
  "optionalDependencies": {},
  "readme": "# replace\n`replace` is a command line utility for performing search-and-replace on files. It's similar to sed but there are a few differences:\n\n* Modifies files when matches are found\n* Recursive search on directories with -r\n* Uses [JavaScript syntax](https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions#Using_Simple_Patterns) for regular expressions and [replacement strings](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter).\n\n# Install\nWith [node.js](http://nodejs.org/) and [npm](http://github.com/isaacs/npm):\n\n\tnpm install replace -g\n\nYou can now use `replace` and `search` from the command line.\n\n\n## Examples\n\nReplace all occurrences of \"foo\" with \"bar\" in files in the current directory:\n\n```\nreplace 'foo' 'bar' *\n```\n\nReplace in all files in a recursive search of the current directory:\n\n```\nreplace 'foo' 'bar' . -r\n```\n\nReplace only in test/file1.js and test/file2.js:\n\n```\nreplace 'foo' 'bar' test/file1.js test/file2.js\n```\n\nReplace all word pairs with \"_\" in middle with a \"-\":\n\n```\nreplace '(\\w+)_(\\w+)' '$1-$2' *\n```\n\nReplace only in files with names matching *.js:\n\n```\nreplace 'foo' 'bar' . -r --include=\"*.js\"\n```\n\nDon't replace in files with names matching *.min.js and *.py:\n\n```\nreplace 'foo' 'bar' . -r --exclude=\"*.min.js,*.py\"\n```\n\nPreview the replacements without modifying any files:\n\n```\nreplace 'foo' 'bar' . -r --preview\n```\n\nSee all the options:\n\n```\nreplace -h\n```\n\n## Search\nThere's also a `search` command. It's like `grep`, but with `replace`'s syntax.\n\n```\nsearch \"setTimeout\" . -r\n```\n\n## Programmatic Usage\nYou can use replace from your JS program:\n\n```javascript\nvar replace = require(\"replace\");\n\nreplace({\n  regex: \"foo\",\n  replacement: \"bar\",\n  paths: ['.'],\n  recursive: true,\n  silent: true,\n});\n```\n\n## More Details\n\n### Excludes\nBy default, `replace` and `search` will exclude files (binaries, images, etc) that match patterns in the `\"defaultignore\"` located in this directory.\n\n### On huge directories\nIf `replace` is taking too long on a large directory, try turning on the quiet flag with `-q`, only including the necessary file types with `--include` or limiting the lines shown in a preview with `-n`.\n\n\n## What it looks like\n![replace](http://i.imgur.com/qmJjS.png)\n\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+ssh://git@github.com/harthur/replace.git"
  },
  "scripts": {
    "test": "tap test"
  },
  "version": "0.3.0"
}
