Skip to content
/ js-xcmd Public

JavaScript XCmd Tools. JavaScript 一个简单的 npm 命令行工具插件,便于管理项目。

License

Notifications You must be signed in to change notification settings

biugle/js-xcmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-xcmd

Install

npm i js-xcmd -g

Use

xcmd -h # 查看帮助说明

# 代码使用
const {
  rmRf,
  isDirExistResult,
  isDirExist,
  emptyDir,
  copyDir,
  copyFile,
  deleteDir,
  deleteFile,
  addDir,
  addFile,
  renameDir,
  renameFile,
  getFileName,
  getFileSize,
  getFileExt,
  setFileContent,
  getFileContent,
  getJSONFileObj,
  getPath,
  getFullPath,
  getResolvePath,
  getAllFilePath,
  cmd,
  node2es6,
  sortJSON
} = require('js-xcmd');

Test Package.json.bin.xxx

npm link
npm run bind
npm unlink
npm run unbind

npm run i:local

Others

About

JavaScript XCmd Tools. JavaScript 一个简单的 npm 命令行工具插件,便于管理项目。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published