Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use console.log() instead of util.puts() #160

Merged
merged 1 commit into from Feb 18, 2018

Conversation

nishidayuya
Copy link
Contributor

Since nodejs/node@896b2aa (included in v0.11.3), util.puts() becomes deprecated API. This pull-request uses console.log instead of util.puts.

Before pull-request

$ node demo.js
State: 1
State: 1
(node:29751) [DEP0027] DeprecationWarning: util.puts is deprecated. Use console.log instead.
State: 2
State: 3
State: 4
Complete.
Body length: 10959
Body:
<!doctype html>
<!--
HTML5 Boilerplate! AAAAAAAAAAWWWWWW YYYYYYEEEEEEEEAAAAAAAA!
...

After pull-request

$ node demo.js
State: 1
State: 1
State: 2
State: 3
State: 3
State: 4
Complete.
Body length: 10959
Body:
<!doctype html>
<!--
HTML5 Boilerplate! AAAAAAAAAAWWWWWW YYYYYYEEEEEEEEAAAAAAAA!
...

@nishidayuya nishidayuya changed the title Use console.log instead of util.puts() Use console.log() instead of util.puts() Feb 14, 2018
Since NodeJS v0.11.3, util.puts becomes deprecated API.
@driverdan driverdan merged commit 5dfb452 into driverdan:master Feb 18, 2018
@nishidayuya
Copy link
Contributor Author

thx! 🎉

@nishidayuya nishidayuya deleted the use-console.log branch February 19, 2018 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants