This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"author": "robert kuzelj <robert@capitalize.org>", | |
"name": "capitalize", | |
"description": "capitalizes and decapitalizes a string", | |
"version": "0.1.0", | |
"homepage": "www.capitalize.org", | |
"repository": { | |
"url": "" | |
}, | |
"main": "main.js", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function capitalize(value) | |
{ | |
return value.toUpperCase(); | |
} | |
exports.capitalize = capitalize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function decapitalize(value) | |
{ | |
return value.toLowerCase(); | |
} | |
exports.decapitalize = decapitalize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.capitalize = require('./lib/capitalize').capitalize; | |
exports.decapitalize = require('./lib/decapitalize').decapitalize; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var capitalize = require("capitalize").capitalize; | |
var decapitalize = require("capitalize").decapitalize; | |
console.log(capitalize("foo")); | |
console.log(decapitalize("BAR")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"author": "robert kuzelj <robert@capitalize.org>", | |
"name": "capitalize", | |
"description": "capitalizes and decapitalizes a string", | |
"version": "0.2.0", | |
"homepage": "www.capitalize.org", | |
"repository": | |
{ | |
"url": "" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var capitalize = require("../main.js"); | |
var value = process.argv[2]; | |
console.log(capitalize.capitalize(value)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var capitalize = require("../main.js"); | |
var value = process.argv[2]; | |
console.log(capitalize.decapitalize(value)); |
OlderNewer