Skip to content

Instantly share code, notes, and snippets.

@robkuz
Created December 14, 2011 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robkuz/1476604 to your computer and use it in GitHub Desktop.
Save robkuz/1476604 to your computer and use it in GitHub Desktop.
command line tool
#!/usr/bin/env node
var capitalize = require("../main.js");
var action = process.argv[2];
var value = process.argv[3];
if (action == "-c")
{
console.log(capitalize.capitalize(value));
}
else
{
console.log(capitalize.decapitalize(value));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment