You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,9 +123,9 @@ Flag | Effect
123
123
`-B` | **`--void-backup`** Avoid temporary backing up file. Works async (independent of -A flag) and will speed up things but at one point data lives only in memory and you will lose the content if the process is abrupted. [boolean]
124
124
`-b` | **`--keep-backup`** Keep a backup file of the original content. [boolean]
125
125
`-m` | **`--output-match`** Output each match on a new line. Will not replace any content but you still need to provide a dummy value (like `_`) as replacement parameter. If search pattern does not contain matching groups the full match will be outputted. If search pattern does contain matching groups only matching groups will be outputted (same line with no delimiter). [boolean]
126
-
`-T` | **`--trim-pipe`** Trim piped data before processing. If piped data only consists of chars that can be trimmed (new line, space, tabs...) it will be considered an empty string.[boolean]
126
+
`-T` | **`--trim-pipe`** Trim piped data before processing. If piped data only consists of chars that can be trimmed (new line, space, tabs...) it will be become an empty string. [boolean]
127
127
`-R` | **`--replacement-pipe`** Replacement will be piped in. You still need to provide a dummy value (like `_`) as replacement parameter. [boolean]
128
-
`-j` | **`--replacement-js`** Treat replacement as javascript source code. The statement from the last expression will become the replacement string. Purposefully implemented the most insecure way possible to remove _any_ incentive to consider running code from an untrusted person - that be anyone that is not yourself. The full match will be available as a javascript variable named $0 while each captured group will be avaiable as $1, $2, $3, ... and so on. At some point the $ char _will_ give you a headache when used from the command line, so use €0, €1, €2 €3 ... instead. If the javascript source code references to the full match or a captured group the code will run once per match. Otherwise it will run once per file. The code has access to the following variables: `_fs` from node, `_globs` from npm, `_pipe` is the piped data into the command (null if no piped data), `_find` is the final pattern searched for. `_text` is the full text being searched (Corresponds to file contents or piped data).The following values are also available if working on a file (if data is being piped they are all set to an empty string): `_file` is the full path of the active file being searched (including full filename), `_path` is the full path without filename of the active file being searched, `_filename` is the full filename of the active file being searched, `_name` is the filename of the active file being searched with no extension, `_ext` is the extension of the filename including leading dot. [boolean]
128
+
`-j` | **`--replacement-js`** Treat replacement as javascript source code. The statement from the last expression will become the replacement string. Purposefully implemented the most insecure way possible to remove _any_ incentive to consider running code from an untrusted person - that be anyone that is not yourself. The full match will be available as a javascript variable named $0 while each captured group will be avaiable as $1, $2, $3, ... and so on. At some point the $ char _will_ give you a headache when used from the command line, so use €0, €1, €2 €3 ... instead. If the javascript source code references to the full match or a captured group the code will run once per match. Otherwise it will run once per file. The code has access to the following variables: `_fs` from node, `_globs` from npm, `_pipe` is the piped data into the command (null if no piped data), `_find` is the final pattern searched for. `_text` is the full text being searched (= file contents or piped data). The following values are also available if working on a file (if data is being piped they are all set to an empty string): `_file` is the full path of the active file being searched (including full filename), `_path` is the full path without filename of the active file being searched, `_filename` is the full filename of the active file being searched, `_name` is the filename of the active file being searched with no extension, `_ext` is the extension of the filename including leading dot. [boolean]
@@ -14369,7 +14390,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
14369
14390
.boolean('I').describe('I','Void case insensitive search pattern.').alias('I','void-ignore-case').boolean('G').describe('G','Void global search (work only with first the match).').alias('G','void-global').boolean('M').describe('M','Void multiline search pattern. Makes ^ and $ match start/end of whole content rather than each line.').alias('M','void-multiline').boolean('u').describe('u','Treat pattern as a sequence of unicode code points.').alias('u','unicode').default('e','utf8').alias('e','encoding').describe('e','Encoding of files/piped data.').boolean('q').describe('q',"Only display errors (no other info)").alias('q','quiet').boolean('Q').describe('Q',"Never display errors or info").alias('Q','quiet-total').boolean('H').describe('H',"Halt on first error").alias('H','halt').default('H',false).boolean('d').describe('d',"Print debug info").alias('d','debug').boolean('€').describe('€',"Void having '€' as alias for '$' in pattern and replacement parameters").alias('€','void-euro').boolean('o').describe('o','Output the final result instead of saving to file. Will also output content even if no replacement has taken place.').alias('o','output')
14370
14391
//.conflicts('o','O')
14371
14392
14372
-
.boolean('A').alias('A','void-async').describe('A',"Handle files in a synchronous flow. Good to limit memory usage when handling large files. "+'').boolean('B').describe('B',"Avoid temporary backing up file. Works async (independent of -A flag) and will speed up things but at one point data lives only in memory and you will lose the content if the process is abrupted.").alias('B','void-backup').boolean('b').describe('b',"Keep a backup file of the original content.").alias('b','keep-backup').boolean('m').describe('m',"Output each match on a new line. "+"Will not replace any content but you still need to provide a dummy value (like '_') as replacement parameter. "+"If search pattern does not contain matching groups the full match will be outputted. "+"If search pattern does contain matching groups only matching groups will be outputted (same line with no delimiter). "+"").alias('m','output-match').boolean('T').alias('T','trim-pipe').describe('T',"Trim piped data before processing. "+"If piped data only consists of chars that can be trimmed (new line, space, tabs...) it will be considered an empty string. "+'').boolean('R').alias('R','replacement-pipe').describe('R',"Replacement will be piped in. You still need to provide a dummy value (like '_') as replacement parameter."+'').boolean('j').alias('j','replacement-js').describe('j',"Treat replacement as javascript source code. "+"The statement from the last expression will become the replacement string. "+"Purposefully implemented the most insecure way possible to remove _any_ incentive to consider running code from an untrusted person - that be anyone that is not yourself. "+"The full match will be available as a javascript variable named $0 while each captured group will be avaiable as $1, $2, $3, ... and so on. "+"At some point the $ char _will_ give you a headache when used from the command line, so use \u20AC0, \u20AC1, \u20AC2 \u20AC3 ... instead. "+"If the javascript source code references to the full match or a captured group the code will run once per match. Otherwise it will run once per file. "+"The code has access to the following variables: "+"'_fs' from node, "+"'_globs' from npm, "+"'_pipe' is the piped data into the command (null if no piped data), "+"'_find' is the final pattern searched for. "+"'_text' is the full text being searched (Corresponds to file contents or piped data)."+"The following values are also available if working on a file (if data is being piped they are all set to an empty string): "+"'_file' is the full path of the active file being searched (including full filename), "+"'_path' is the full path without filename of the active file being searched, "+"'_filename' is the full filename of the active file being searched, "+"'_name' is the filename of the active file being searched with no extension, "+"'_ext' is the extension of the filename including leading dot. "+'')
14393
+
.boolean('A').alias('A','void-async').describe('A',"Handle files in a synchronous flow. Good to limit memory usage when handling large files. "+'').boolean('B').describe('B',"Avoid temporary backing up file. Works async (independent of -A flag) and will speed up things but at one point data lives only in memory and you will lose the content if the process is abrupted.").alias('B','void-backup').boolean('b').describe('b',"Keep a backup file of the original content.").alias('b','keep-backup').boolean('m').describe('m',"Output each match on a new line. "+"Will not replace any content but you still need to provide a dummy value (like '_') as replacement parameter. "+"If search pattern does not contain matching groups the full match will be outputted. "+"If search pattern does contain matching groups only matching groups will be outputted (same line with no delimiter). "+"").alias('m','output-match').boolean('T').alias('T','trim-pipe').describe('T',"Trim piped data before processing. "+"If piped data only consists of chars that can be trimmed (new line, space, tabs...) it will be become an empty string. "+'').boolean('R').alias('R','replacement-pipe').describe('R',"Replacement will be piped in. You still need to provide a dummy value (like '_') as replacement parameter."+'').boolean('j').alias('j','replacement-js').describe('j',"Treat replacement as javascript source code. "+"The statement from the last expression will become the replacement string. "+"Purposefully implemented the most insecure way possible to remove _any_ incentive to consider running code from an untrusted person - that be anyone that is not yourself. "+"The full match will be available as a javascript variable named $0 while each captured group will be avaiable as $1, $2, $3, ... and so on. "+"At some point the $ char _will_ give you a headache when used from the command line, so use \u20AC0, \u20AC1, \u20AC2 \u20AC3 ... instead. "+"If the javascript source code references to the full match or a captured group the code will run once per match. Otherwise it will run once per file. "+"\nThe code has access to the following variables: "+"\n'_fs' from node, "+"\n'_globs' from npm, "+"\n'_pipe' is the piped data into the command (null if no piped data), "+"\n'_find' is the final pattern searched for. "+"\n'_text' is the full text being searched (= file contents or piped data). "+"\nThe following values are also available if working on a file (if data is being piped they are all set to an empty string): "+"\n'_file' is the full path of the active file being searched (including full filename), "+"\n'_path' is the full path without filename of the active file being searched, "+"\n'_filename' is the full filename of the active file being searched, "+"\n'_name' is the filename of the active file being searched with no extension, "+"\n'_ext' is the extension of the filename including leading dot. "+'')
14373
14394
14374
14395
/*
14375
14396
.boolean('N')
@@ -14502,7 +14523,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
`The full match will be available as a javascript variable named $0 while each captured group will be avaiable as $1, $2, $3, ... and so on. `+
15305
15333
`At some point the $ char _will_ give you a headache when used from the command line, so use €0, €1, €2 €3 ... instead. `+
15306
15334
`If the javascript source code references to the full match or a captured group the code will run once per match. Otherwise it will run once per file. `+
15307
-
`The code has access to the following variables: `+
15308
-
`'_fs' from node, `+
15309
-
`'_globs' from npm, `+
15310
-
`'_pipe' is the piped data into the command (null if no piped data), `+
15311
-
`'_find' is the final pattern searched for. `+
15312
-
`'_text' is the full text being searched (Corresponds to file contents or piped data).`+
15313
-
`The following values are also available if working on a file (if data is being piped they are all set to an empty string): `+
15314
-
`'_file' is the full path of the active file being searched (including full filename), `+
15315
-
`'_path' is the full path without filename of the active file being searched, `+
15316
-
`'_filename' is the full filename of the active file being searched, `+
15317
-
`'_name' is the filename of the active file being searched with no extension, `+
15318
-
`'_ext' is the extension of the filename including leading dot. `+
15335
+
`\nThe code has access to the following variables: `+
15336
+
`\n'_fs' from node, `+
15337
+
`\n'_globs' from npm, `+
15338
+
`\n'_pipe' is the piped data into the command (null if no piped data), `+
15339
+
`\n'_find' is the final pattern searched for. `+
15340
+
`\n'_text' is the full text being searched (= file contents or piped data).`+
15341
+
`\nThe following values are also available if working on a file (if data is being piped they are all set to an empty string): `+
15342
+
`\n'_file' is the full path of the active file being searched (including full filename), `+
15343
+
`\n'_path' is the full path without filename of the active file being searched, `+
15344
+
`\n'_filename' is the full filename of the active file being searched, `+
15345
+
`\n'_name' is the filename of the active file being searched with no extension, `+
15346
+
`\n'_ext' is the extension of the filename including leading dot. `+
0 commit comments