0.1.3 • Published 2 years ago

@concisejs/tools v0.1.3

Weekly downloads
-
License
GNU GPLv3
Repository
github
Last release
2 years ago

ConciseJS tools

Development tools used by ConciseJS. Use CommonJS specification.

Install

npm install --save @concisejs/tools

Usage

const {chalk, codeStyle, ip, spawn} = require('@concisejs/tools');
const {chalkColors} = chalk;

// 控制台输出样式美化
console.log(chalkColors.red('say something'));

// 代码风格转换
console.log(codeStyle.camelize('dev-utils')); // => devUtils

// 获取本机 IP
console.log(ip());

// 创建 node 进程
const child = spawn(cmd, args, {cwd, stdio: 'inherit'});