{"_id":"xp","_rev":"14-089fc0b4cb8fc13889fc77d1c8616cf6","name":"xp","description":"Command line regular expression search and replace","dist-tags":{"latest":"1.0.1"},"versions":{"0.2.0":{"name":"xp","description":"agile programming tools in Coffeescript","keywords":["xp","agile","programming","git","tools","utility","utilities","tool","coffeescript"],"version":"0.2.0","author":{"name":"Marak Squires","email":"marak.squires@gmail.com"},"contributors":[{"name":"Nicholas Kinsey","email":"nicholas.kinsey@feistystudios.com"}],"repository":{"type":"git","url":"git://github.com/marak/xp.git"},"directories":{"lib":"./lib","doc":"./doc","bin":"./bin"},"dependencies":{"coffee-script":">= 1.0.1","optimist":">= 0.1.3","nconf":">= 0.1.3"},"engines":{"node":">= 0.4.0"},"_id":"xp@0.2.0","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.5.0-pre","bin":{"xp":"bin/xp"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"d247555b53d13f8f82d9db05e0e3234df2d7d136","tarball":"https://registry.npmjs.org/xp/-/xp-0.2.0.tgz","integrity":"sha512-OiPZjhMutfyJSUDWJKwAL+PeuBNkim6aUnsBrCV6ASr5gFkAmSOy1FtVK+foT/Buv7aHvbb9kby1xdPZuA9lCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNBnTB6y6pjltG9PxfhHrMrvZtmC2Go9tmm4+CgrYO/wIgEcI45T+Swmpmg19GkolLDXLUnGTZOXK9t1P8csQQQUY="}]}},"0.2.1":{"name":"xp","description":"agile programming tools in Coffeescript","keywords":["xp","agile","programming","git","tools","utility","utilities","tool","coffeescript"],"version":"0.2.1","author":{"name":"Marak Squires","email":"marak.squires@gmail.com"},"contributors":[{"name":"Nicholas Kinsey","email":"nicholas.kinsey@feistystudios.com"}],"repository":{"type":"git","url":"git://github.com/marak/xp.git"},"directories":{"lib":"./lib","doc":"./doc","bin":"./bin"},"dependencies":{"coffee-script":">= 1.0.1","optimist":">= 0.1.3","nconf":">= 0.1.3"},"engines":{"node":">= 0.4.0"},"_id":"xp@0.2.1","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.5.0-pre","bin":{"xp":"bin/xp"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"a085255d420c22ac2143ab6e0411d6583156e762","tarball":"https://registry.npmjs.org/xp/-/xp-0.2.1.tgz","integrity":"sha512-J18MyrawPhKatWNzUC+GKDSb3yBz7hg9tRnKKl+zAHUMzEiDlZcmrnyI/m/nn+OcHE7Xho/xUVZ2ZBq4LrZp3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH3uTrdk3VK5+1yTqQvJQ6FSGUSo4ezqWtXxZOxkZ5j1AiBuC9PKPpXYB4zBxDEfnHwsRhuaysQefhcTlsZKjTQLJQ=="}]}},"0.2.2":{"name":"xp","description":"agile programming tools in Coffeescript","keywords":["xp","agile","programming","git","tools","utility","utilities","tool","coffeescript"],"version":"0.2.2","author":{"name":"Marak Squires","email":"marak.squires@gmail.com"},"contributors":[{"name":"Nicholas Kinsey","email":"nicholas.kinsey@feistystudios.com"}],"repository":{"type":"git","url":"git://github.com/marak/xp.git"},"directories":{"lib":"./lib","doc":"./doc","bin":"./bin"},"dependencies":{"coffee-script":">= 1.0.1","optimist":">= 0.1.3","nconf":">= 0.1.3","colors":">= 0.5.0","request":">= 1.9.5"},"engines":{"node":">= 0.4.0"},"_id":"xp@0.2.2","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.5.0-pre","bin":{"xp":"bin/xp"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"87af39e90a5e49a4917e657d1821d3eb1f6939ae","tarball":"https://registry.npmjs.org/xp/-/xp-0.2.2.tgz","integrity":"sha512-+sPFnVOuQ7umWYgmCHg93FkwmXGn8yDQyFAm9EbyrRXZ9/WPCuMK1NHxTFut5w+8DrfgPlrDVz+DbD4SpgfgnA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDn6AehCC1RH0qbNxkJeTfBTyvP5HExAoSvk99WutFB6wIgEbQg1etgCY60qo/+flqIkdc7qxWARDyym1xi6uOH2Ys="}]}},"1.0.0":{"name":"xp","description":"Command line regular expression search and replace","version":"1.0.0","author":{"name":"Qix","url":"http://github.com/qix-"},"bin":{"xp":"./index.js"},"keywords":["regular","expression","regex","regexp","cli","command","line","search","replace","find","sed","awk","grep"],"license":"MIT","scripts":{"pretest":"xo","test":"mocha --compilers coffee:coffee-script/register"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/qix-/xp.git"},"devDependencies":{"coffee-script":"^1.9.3","coveralls":"^2.11.2","istanbul":"^0.3.17","mocha":"^2.2.5","should":"^7.0.1","xo":"^0.7.1"},"dependencies":{"backslash":"^0.2.0","chalk":"^1.1.3","commander":"^2.9.0","consumer-stream":"^0.1.1"},"gitHead":"08bc1bd9ec02b6b30076ad46924896cf467a9de3","bugs":{"url":"https://github.com/qix-/xp/issues"},"homepage":"https://github.com/qix-/xp#readme","_id":"xp@1.0.0","_shasum":"11392aeef841ebaf1509dfb20d401c6770805822","_from":".","_npmVersion":"2.14.2","_nodeVersion":"0.10.32","_npmUser":{"name":"qix","email":"i.am.qix@gmail.com"},"dist":{"shasum":"11392aeef841ebaf1509dfb20d401c6770805822","tarball":"https://registry.npmjs.org/xp/-/xp-1.0.0.tgz","integrity":"sha512-BD6Vt5WvDlrirhBbgzL8csXXbA7xfiCtX1TtPwavGmQZq39oPw1tyokKhgHp4zXj22iEc4IVlZQgA2dvYShwew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFc6wjzp8PyD3qu/7fQCPfh8J0QxNd0lQAXw8FPlns1fAiA9qebk4TgUotVJxnYWDM+gChmH6vXc46OuBRIBz+3j7g=="}]},"maintainers":[{"name":"marak","email":"marak.squires@gmail.com"},{"name":"qix","email":"i.am.qix@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/xp-1.0.0.tgz_1484638939135_0.15385659434832633"}},"1.0.1":{"name":"xp","description":"Command line regular expression search and replace","version":"1.0.1","author":{"name":"Qix","url":"http://github.com/qix-"},"bin":{"xp":"./index.js"},"keywords":["regular","expression","regex","regexp","cli","command","line","search","replace","find","sed","awk","grep"],"license":"MIT","scripts":{"pretest":"xo","test":"mocha --compilers coffee:coffee-script/register"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/qix-/xp.git"},"devDependencies":{"coffee-script":"^1.9.3","coveralls":"^2.11.2","istanbul":"^0.3.17","mocha":"^2.2.5","should":"^7.0.1","xo":"^0.7.1"},"dependencies":{"backslash":"^0.2.0","chalk":"^1.1.3","commander":"^2.9.0","consumer-stream":"^0.1.1"},"gitHead":"f1ff87076f9deb61ea34a7c41abd3a208d1ac3a0","bugs":{"url":"https://github.com/qix-/xp/issues"},"homepage":"https://github.com/qix-/xp#readme","_id":"xp@1.0.1","_shasum":"0aa0596aa4f1cf4d5e33915dc0c41795cfbe1a3e","_from":".","_npmVersion":"2.14.2","_nodeVersion":"0.10.32","_npmUser":{"name":"qix","email":"i.am.qix@gmail.com"},"dist":{"shasum":"0aa0596aa4f1cf4d5e33915dc0c41795cfbe1a3e","tarball":"https://registry.npmjs.org/xp/-/xp-1.0.1.tgz","integrity":"sha512-y11Auj7nsqSwfvuZmWPzJMF3eaXbWnHL5fvGi4AindiMFWtOONVUiX9cNlGKTuXhSFFSp3GGVXd8tESLAQvEqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCy7gFRI/jCLEzUJUXdV8bsguA81u/bWV6gGfZAhO4pCQIhAIKj3fdYCVmI5/0FTPDeifZZvifTm2c98m/NQ3JgQnUz"}]},"maintainers":[{"name":"qix","email":"i.am.qix@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/xp-1.0.1.tgz_1484639043152_0.4015110086183995"}}},"maintainers":[{"name":"qix","email":"i.am.qix@gmail.com"}],"time":{"modified":"2022-06-29T05:51:12.689Z","created":"2011-04-05T09:15:04.838Z","0.2.0":"2011-04-05T09:15:05.199Z","0.2.1":"2011-04-05T09:51:55.404Z","0.2.2":"2011-04-05T09:55:02.423Z","1.0.0":"2017-01-17T07:42:20.922Z","1.0.1":"2017-01-17T07:44:04.847Z"},"author":{"name":"Qix","url":"http://github.com/qix-"},"repository":{"type":"git","url":"git+https://github.com/qix-/xp.git"},"keywords":["regular","expression","regex","regexp","cli","command","line","search","replace","find","sed","awk","grep"],"readme":"# XP [![Travis-CI.org Build Status](https://img.shields.io/travis/Qix-/xp.svg?style=flat-square)](https://travis-ci.org/Qix-/xp) [![Coveralls.io Coverage Rating](https://img.shields.io/coveralls/Qix-/xp.svg?style=flat-square)](https://coveralls.io/r/Qix-/xp)\nSearch and replace on the command line using Javscript regular expressions.\n\nA handy replacement to `sed`.\n\n```console\n$ npm install -g xp\n```\n\n```\n\n  Usage: xp [-ialo] <search pattern> [replace pattern] [--] [files...]\n\n  Options:\n\n    -h, --help                 output usage information\n    -V, --version              output the version number\n    -i, --insensitive          perform case-insensitive searching\n    -a, --all                  perform search (and replace) on whole input\n    -l, --lines                show the filename and line number for matches\n    -O, --only-matching-lines  show only the lines that match\n    -o, --only-matching        show only the portion of the search text that matched\n    <search_pattern>           the search pattern\n    [replace_pattern]          the replacement pattern\n    [files...]                 one or more files to read\n\n  Remarks:\n\n    The search pattern defaults to line-by-line matching by default.\n\n    Specifying `-a' will cause the input to be matched in whole (inverse of the /.../m\n    flag), though will cause the entire input to be buffered in memory prior to\n    performing a match.\n\n    If no replacement pattern is provided, and filenames are to be specified, `--' must\n    come after the search pattern and before the command line arguments. It is innocuous\n    to have it when using both a replacement pattern and a list of files.\n\n    If no files are specified, or if a single hyphen (`-') is specified as a file, then \n    standard input is read instead.\n\n    The `--lines' flag only applies when `-a' is not specified and no replacement is\n    being performed.\n\n    The `--only-matching` flag only applies when no replacement is being performed.\n\n  Bugs:\n\n    For bug reports, updates, issues or feedback, please file an issue on GitHub:\n\n        https://github.com/qix-/xp\n\n```\n\n## Examples\n\n```console\n$ echo 'hello' | xp -o .\nh\ne\nl\nl\no\n```\n\n```console\n$ echo 'hello' | xp h j\njello\n```\n\n```console\n$ cat /usr/share/dict/propernames | xp -O 'Jean\\-([A-Z][a-z]*)' 'Jean clan: $1'\nJean clan: Christophe\nJean clan: Pierre\n```\n\n## License\nLicensed under the [MIT License](http://opensource.org/licenses/MIT).<br />\nYou can find a copy of it in [LICENSE](LICENSE).\n","readmeFilename":"README.md","homepage":"https://github.com/qix-/xp#readme","bugs":{"url":"https://github.com/qix-/xp/issues"},"license":"MIT"}