From 1fbc3a1b3f7c50fd65ef5d156e52f802c7804d59 Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Sat, 23 Jun 2012 01:05:55 -0800 Subject: [PATCH] [fix] Changed require('sys') to require('util') for compatibility with node v0.8 --- Readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Readme.md b/Readme.md index 403f20c..705e3d2 100644 --- a/Readme.md +++ b/Readme.md @@ -19,7 +19,7 @@ asciimo "roffles" Cybermedium ### node.js - - var sys = require('sys'); + var util = require('util'); var asciimo = require('./lib/asciimo').Figlet; var colors = require('./lib/colors'); // add colors for fun @@ -29,23 +29,23 @@ var text = "hello, i am asciimo"; asciimo.write(text, font, function(art){ - sys.puts(art.magenta); + util.puts(art.magenta); var anotherFont = 'binary'; var moreText = "i turn text into leet ascii art ^_^."; asciimo.write(moreText, anotherFont, function(art){ - sys.puts(art.red); + util.puts(art.red); var anotherFont = 'Colossal'; var moreText = "400+ fonts supported"; asciimo.write(moreText, anotherFont, function(art){ - sys.puts(art.green); + util.puts(art.green); var anotherFont = 'tinker-toy'; var moreText = "Marak Squires 2010"; asciimo.write(moreText, anotherFont, function(art){ - sys.puts(art.yellow); - sys.puts('if you can\'t see the text try making your console larger'.red.underline) + util.puts(art.yellow); + util.puts('if you can\'t see the text try making your console larger'.red.underline) }); });