Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs11-async
grep
Commits
ce6a4bd6
Commit
ce6a4bd6
authored
4 years ago
by
Caleb C. Sander
Browse files
Options
Download
Email Patches
Plain Diff
Prevent MaxListenersExceededWarning
Fixes #1
parent
82ae5fea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grep.js
+3
-0
grep.js
with
3 additions
and
0 deletions
+3
-0
grep.js
View file @
ce6a4bd6
...
...
@@ -48,4 +48,7 @@ for (const arg of process.argv.slice(2)) {
}
if
(
!
pattern
)
throw
new
Error
(
'
Syntax: node grep.js [-i] [-r] [-v] [-z] pattern ...files
'
)
// Prevent warnings when piping many streams to `process.stdout`
process
.
stdout
.
setMaxListeners
(
Infinity
)
// TODO: implement grep
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment