Skip to content

Instantly share code, notes, and snippets.

@molda
Last active April 8, 2018 09:13
Show Gist options
  • Save molda/eedd7c5abd2cc79de4ee7fe1bbd4e420 to your computer and use it in GitHub Desktop.
Save molda/eedd7c5abd2cc79de4ee7fe1bbd4e420 to your computer and use it in GitHub Desktop.
#! /usr/bin/env node
var Path = require('path');
if (process.argv[2] === '--help' || process.argv[2] === '-h') {
console.log('');
console.log('Runs in debug mode on port 8000 by default');
console.log('Add port number to run on different port');
console.log('Example: `$ totald 3000`');
console.log('');
return;
}
module.paths.unshift(Path.join(process.cwd(), '../', 'node_modules'));
module.paths.unshift(Path.join(process.cwd(), 'node_modules'));
require('total.js/debug')();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment