Permalink
Browse files

removing util requirement in sherpa

  • Loading branch information...
1 parent 75afeba commit 06a199c7e094b4aaa7a3000e96183099c6f386a6 @kalisjoshua committed Sep 11, 2012
Showing with 4 additions and 9 deletions.
  1. +1 −1 package.json
  2. +3 −8 sherpa.js
View
@@ -2,7 +2,7 @@
"author": "Joshua T Kalis <kalisjoshua@gmail.com> (http://joshuakalis.com)",
"name": "sherpa",
"description": "Watch files in a directory for changes/updates",
- "version": "0.1.1",
+ "version": "0.1.3",
"homepage": "http://github.com/kalisjoshua/sherpa",
"repository": {
"url": "https://github.com/kalisjoshua/sherpa/.git"
View
@@ -1,12 +1,7 @@
/*jshint laxcomma:true strict:false*/
-/*globals module require*/
+/*globals console module require*/
var fs = require("fs")
- , path = require("path")
- , util = require('util');
-
-function puts(error, stdout/*, stderr*/) {
- util.puts(stdout);
-}
+ , path = require("path");
function walk (start, callback) {
fs.lstat(start, function (err, stat) {
@@ -50,7 +45,7 @@ module.exports = function (root, interval, callback) {
, interval: interval || 5007
};
- puts(null, "Watching " + root + " every " + opts.interval / 1000 + " seconds for changes...");
+ console.log("Watching", root, "every", opts.interval / 1000, "seconds for changes...");
walk(root, function (err, dir, files) {
files

0 comments on commit 06a199c

Please sign in to comment.