@concisejs/tools
v0.1.3
Published
Development tools used by ConciseJS.
Downloads
3
Readme
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'});