New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

toka

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toka - npm Package Compare versions

Comparing version 0.1.11 to 0.1.31

5

lib/gitignore.js

@@ -18,2 +18,3 @@ var fs = require('fs');

module.exports = function (language) {
if (language == '-d') language = 'Default';
var check = require('./helper').checkInArray(langs, language);

@@ -47,3 +48,3 @@ if (!check || !language) {

var raw = 'https://raw.githubusercontent.com/github/gitignore/master/' + langs[result.number] + '.gitignore';
var raw = 'https://raw.githubusercontent.com/0x142857/gitignore/master/' + langs[result.number] + '.gitignore';
request(raw, function (error, response, body) {

@@ -60,3 +61,3 @@ if (!error && response.statusCode == 200) {

} else if(check) {
var raw = 'https://raw.githubusercontent.com/github/gitignore/master/' + language + '.gitignore';
var raw = 'https://raw.githubusercontent.com/0x142857/gitignore/master/' + language + '.gitignore';
request(raw, function (error, response, body) {

@@ -63,0 +64,0 @@ if (!error && response.statusCode == 200) {

16

lib/license.js

@@ -19,14 +19,2 @@ var fs = require('fs');

var htmldecode = function (str) {
str= str.replace(/&lt;/g, "<");
str= str.replace(/&gt;/g, ">");
str= str.replace(/&nbsp;/g, " ");
str= str.replace(/&quot;/g, "\"");
str= str.replace(/<br>/g, "\n");
str= str.replace(/&raquo;/g, "");
str= str.replace(/&amp;/g, "");
return str;
}
module.exports = function (license) {

@@ -48,8 +36,8 @@ 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
}
output = htmldecode(tpl(data));
output = tpl(data);
fs.writeFileSync(process.cwd() + '/LICENSE', output, 'utf-8');
console.log(license.green + ' license is saved yo your project!'.green);
}

@@ -25,2 +25,3 @@ var langs = [

'Dart',
'Default',
'Delphi',

@@ -70,2 +71,3 @@ 'Drupal',

'OCaml',
'OSX',
'Objective-C',

@@ -112,2 +114,3 @@ 'Opa',

'Waf',
'Windows',
'WordPress',

@@ -114,0 +117,0 @@ 'Xojo',

{
"name": "toka",
"version": "0.1.11",
"version": "0.1.31",
"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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc