{
  "name": "replace",
  "description": "Command line search and replace utility",
  "version": "0.2.7",
  "author": {
    "name": "Heather Arthur",
    "email": "fayearthur@gmail.com"
  },
  "main": "replace.js",
  "repository": {
    "type": "git",
    "url": "http://github.com/harthur/replace.git"
  },
  "dependencies": {
    "nomnom": "1.6.x",
    "colors": "0.5.x",
    "minimatch": "~0.2.9"
  },
  "devDependencies": {
    "tape": "~0.2.2"
  },
  "bin": {
    "replace": "./bin/replace.js",
    "search": "./bin/search.js"
  },
  "keywords": [
    "sed",
    "grep",
    "search",
    "replace"
  ],
  "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",
  "_id": "replace@0.2.7",
  "_from": "replace@"
}
