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

toka

Package Overview
Dependencies
Maintainers
2
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.2.3 to 0.2.5

lib/gulp.js

6

lib/files.js
var gitignore = require('./gitignore'),
bowerrc = require('./bowerrc'),
webpack = require('./webpack'),
gulp = require('./gulp'),
license = require('./license');

@@ -13,2 +14,3 @@

case 'g':
case 'git':
case '.gitignore':

@@ -29,2 +31,6 @@ gitignore(options);

break;
case 'gu':
case 'gulp':
gulp(options);
break;
default:

@@ -31,0 +37,0 @@ return;

@@ -48,3 +48,11 @@ var fs = require('fs');

if (!check) {
var guess = '';
for (var i = 0; i < langs.length; i++) {
if (require('./helper').fuzzy(langs[i], lang)) {
guess = langs[i];
}
}
notFound();
console.log('');
console.log(' Do you mean %s ?'.cyan, guess);
return;

@@ -51,0 +59,0 @@ }

2

lib/webpack.js

@@ -8,3 +8,3 @@ var hb = require('handlebars');

var filename = options.filename || options.f;
var string = fs.readFileSync(__dirname + '/webpack/config.txt').toString('utf8');
var string = fs.readFileSync(__dirname + '/webpack/config.js').toString('utf8');
var tpl = hb.compile(string);

@@ -11,0 +11,0 @@ var output = tpl({

{
"name": "toka",
"version": "0.2.3",
"version": "0.2.5",
"description": "A handy tool to generate common files in command line",

@@ -5,0 +5,0 @@ "main": "index.js",

## Toka
[![NPM version](https://img.shields.io/npm/v/toka.svg?style=flat)](https://www.npmjs.com/package/toka)
[![NPM download](https://img.shields.io/npm/dm/toka.svg?style=flat)](https://www.npmjs.com/package/toka)
[![David Status](https://david-dm.org/aprilorange/toka.svg)](https://david-dm.org/aprilorange/toka)
[![NPM version](https://img.shields.io/npm/v/toka.svg?style=flat-square)](https://www.npmjs.com/package/toka)
[![NPM download](https://img.shields.io/npm/dm/toka.svg?style=flat-square)](https://www.npmjs.com/package/toka)
[![David Status](https://img.shields.io/david/aprilorange/toka.svg?style=flat-square)](https://david-dm.org/aprilorange/toka)

@@ -16,12 +16,26 @@ ### A handy tool to generate common files in command line

toka -v
toka .gitignore <LAUNGUAGE NAMES> # alias to toka g
toka .gitignore <LAUNGUAGE NAMES> # alias to toka g/git
toka .bowerrc <COMPONENT DIR> # alias to toka b
toka license <LICENSE NAME> # alias to toka l
toka webpack # alias to toka w
toka gulp # alias to toka gu
```
Arguements:
#### Arguments:
- -d : generate default file (.gitignore)
- -a : append to an existing file (.gitignore)
gitignore only:
- -d/--default : generate default file
- -a/--append : append to an existing file
webpack only:
- -p/--path
- -f/--filename
- -e/--entry
gulp only:
- -b/--babel : use gulpfile.babel.js
Example:

@@ -35,2 +49,4 @@

toka license MIT
toka gulp -b
toka webpack -e src/app/app.js -p /build/js -f bundle.js
```

@@ -37,0 +53,0 @@

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