replace
replace copied to clipboard
Command line search and replace utility
Is there any way to replace content in an asynchronous way? I didn't find the async api in `README.md`, but found an async option in `replace.js` which seems can asynchronously...
I wan't to replace with multiline a tag which goes over multiple lines: ``` sh replace '(.*?)' '$1' index.html -p -m ``` How is the correct syntax to do this?...
Tests fail as below. Maybe you just forgot to git add test_numbers.txt? ``` $ tap test ok test/paths.js ...................................... 19/19 not ok test/sanity.js ................................... 2/3 Command: "node" "sanity.js" TAP version...
``` bash ❯ sudo npm install replace -g Password: npm http GET https://registry.npmjs.org/replace npm http 304 https://registry.npmjs.org/replace npm http GET https://registry.npmjs.org/nomnom npm http GET https://registry.npmjs.org/colors npm http GET https://registry.npmjs.org/minimatch npm...
the limitations I see are - no handling of symlinks - limited line length I documented both of those. I'm not so sure about the second, but I added a...
I get this error message when I call replace with `-r` over a largish amount of files (1856 files in one case). At first I didn't think it affected functionality...
When you do `replace foo bar dir` and leave out the `-r`, `replace` should warn you or mark it in some way. Hopefully it wouldn't be too distracting, as entering...
It would be scary if the some matches go wrong.
This would be useful for removing `console.log()` lines.
Something like ``` javascript var queue = require("queue-async") var q = queue(opts.concurrency || 250) // ... for each file ... q.defer(replace) //before terminating q.awaitAll() ```