Comparing version 0.1.2 to 0.1.3
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
console.log(' $ '.cyan + 'toka -v'); | ||
console.log(' $ '.cyan + 'toka .gitignore <LAUNGUAGE NAME>'); // Use -d to create a default .gitignore file | ||
console.log(' $ '.cyan + 'toka .gitignore <LAUNGUAGE NAME>'); | ||
console.log(' $ '.cyan + 'toka .bowerrc <COMPONENT DIR>'); | ||
@@ -11,0 +11,0 @@ console.log(' $ '.cyan + 'toka license <LICENSE NAME>'); |
@@ -19,14 +19,2 @@ var fs = require('fs'); | ||
var htmldecode = function (str) { | ||
str= str.replace(/</g, "<"); | ||
str= str.replace(/>/g, ">"); | ||
str= str.replace(/ /g, " "); | ||
str= str.replace(/"/g, "\""); | ||
str= str.replace(/<br>/g, "\n"); | ||
str= str.replace(/»/g, ""); | ||
str= str.replace(/&/g, ""); | ||
return str; | ||
} | ||
module.exports = function (license) { | ||
@@ -48,3 +36,3 @@ var check = require('./helper').checkInArray(licenses, license); | ||
YEAR: new Date().getFullYear(), | ||
OWNER: config.user.name + ' <' + config.user.email + '>' | ||
OWNER: config.user.name + ' ' + config.user.email | ||
} | ||
@@ -51,0 +39,0 @@ |
{ | ||
"name": "toka", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A handy tool to generate common files in command line", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,3 +18,3 @@ ## Toka | ||
toka -v | ||
toka .gitignore <LAUNGUAGE NAME> | ||
toka .gitignore <LAUNGUAGE NAME> // Use -d to create a default .gitignore file | ||
toka .bowerrc <COMPONENT DIR> | ||
@@ -37,3 +37,3 @@ toka license <LICENSE NAME> | ||
By deault, `toka` is also alias to `gen`. | ||
By default, `toka` is also alias to `gen`. | ||
@@ -40,0 +40,0 @@ >因为 NPM 上的 gen 被抢占了... 那就用董香女神的名字 QAQ |
59147
267