Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

s/sys/util/

  • Loading branch information...
commit 7bfce2f3b3c98e6539e7549d35fbabced7e9341e 1 parent d420a7a
@substack authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 README.markdown
  2. +2 −2 examples/bool.js
View
4 README.markdown
@@ -58,11 +58,11 @@ bool.js:
````javascript
#!/usr/bin/env node
-var sys = require('sys');
+var util = require('util');
var argv = require('optimist').argv;
if (argv.s) {
- sys.print(argv.fr ? 'Le chat dit: ' : 'The cat says: ');
+ util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: ');
}
console.log(
(argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '')
View
4 examples/bool.js
@@ -1,9 +1,9 @@
#!/usr/bin/env node
-var sys = require('sys');
+var util = require('util');
var argv = require('optimist').argv;
if (argv.s) {
- sys.print(argv.fr ? 'Le chat dit: ' : 'The cat says: ');
+ util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: ');
}
console.log(
(argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '')
Please sign in to comment.
Something went wrong with that request. Please try again.