How to use the sys.puts function in sys

To help you get started, we’ve selected a few sys examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cdapio / cdap / passport / tools / expiration-mailer / node_modules / cli-table / node_modules / colors / example.js View on Github external
var sys = require('sys');
var colors = require('./colors');

sys.puts('Rainbows are fun!'.rainbow);
sys.puts('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse); // styles not widely supported
sys.puts('Chains are also cool.'.bold.italic.underline.red); // styles not widely supported
github BrainJS / brain.js / test / sanity / runtests.js View on Github external
function testFile(test) {
  var test = test.replace(".js", "");
  try {
    require(test);
    sys.puts("PASS " + path.basename(test));
  }
  catch(e) {
    var msg = "FAIL " + test + ": " +  e;
    if(e.expected != true)
      msg += ", expected: " + JSON.stringify(e.expected)
             + " actual: " + JSON.stringify(e.actual);
    sys.puts(msg);
  }
}
github angular / angular.js / lib / nodeserver / server.js View on Github external
HttpServer.prototype.start = function(port) {
  this.port = port;
  this.server.listen(port);
  sys.puts('Http Server running at http://127.0.0.1:' + port + '/');
};
github senecajs / seneca / accept / memapp.js View on Github external
ent1.$save( function(err,ent1) {
    sys.puts(ent1);
    sys.puts('http://localhost:3000/seneca/1.0/entity/test/foo/bar/id/'+ent1.id);

    var server = connect.createServer(
      connect.router(seneca.router)
    );

    server.listen(3000);
  });
});
github xenophy / NextJS / lib / NX / server / ServerManager / initDaemon.js View on Github external
NX.server.Daemon.kill(lockFile, function (err, pid) {

        if(err) {
            return sys.puts('Error stopping daemon: ' + err);
        }

        NX.server.Daemon.fireEvent('destroy');

        sys.puts('Successfully stopped daemon with pid: ' + pid);

    });
github cloudkick / cast / lib / cast-client / commands / completion.js View on Github external
function outputCompletion(value) {
  var toOutput;

  if (!value || ((value instanceof Array) && value.length === 0)) {
    return;
  }

  if (value instanceof Array) {
    toOutput = value.join(' ');
  }
  else {
    toOutput = value;
  }

  sys.puts(toOutput);
}
github caolan / cpm / lib / logger.js View on Github external
exports.info = forLevels(['info', 'debug'], function (label, val) {
    if (val === undefined) {
        val = label;
        label = null;
    }
    if (typeof val !== 'string') {
        val = sys.inspect(val);
    }
    label ? sys.puts(magenta(label + ' ') + val): sys.puts(val);
});
github sixtus / node-couch / module / node-couch.js View on Github external
response.addListener("end", function() {
			if (CouchDB.debug) {
				sys.puts("COMPLETED " + requestPath + " -> " + verb);
				sys.puts(responseBody)
			}
			responseBody = JSON.parse(responseBody);
			
			if (response.statusCode === successStatus) {
				if (options.success) {
					options.success(responseBody);
				}
			} else if (options.error) {
				options.error(responseBody);
			}
		});
	});

sys

Fixes using sys in your libraries without require all of Node to not depreciate stuff. Jeez.

BSD
Latest version published 12 years ago

Package Health Score

40 / 100
Full package analysis