Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

maruko-cli

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maruko-cli - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

template/@route/fname.routes.ts.tpl

12

bin/bootstrapGen.js

@@ -5,2 +5,3 @@ const fs = require('fs')

const shell = require('shelljs');
const nameStyles = require('name-styles');
const cowsay = require('cowsay');

@@ -13,3 +14,5 @@ const config = require('../config')

this.fileType = fileType;
this.fileName = fileName;
this.fileNameUpper = fileName.toUpperCase();
this.fileNameCap = nameStyles.pascal(fileName);
this.fileName = nameStyles.hyphen(fileName);

@@ -23,4 +26,5 @@ this.cmd = cmd;

// 生成的文件队列
this.fileQueue = [];
// 命令对应的 ITEM
this.result = config.commandTypes.find(v => {

@@ -30,6 +34,2 @@ return v.command === fileType || v.alias === fileType;

const fileNameArr = [...fileName];
fileNameArr[0] = fileNameArr[0].toUpperCase();
this.fileNameCap = fileNameArr.join('');
this.fileNameUpper = fileName.toUpperCase();
}

@@ -36,0 +36,0 @@

{
"name": "maruko-cli",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

@@ -21,4 +21,5 @@ "main": "index.js",

"inquirer": "^7.0.0",
"name-styles": "^2.0.2",
"shelljs": "^0.8.3"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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