Skip to content

Latest commit

 

History

History
61 lines (51 loc) · 801 Bytes

README.md

File metadata and controls

61 lines (51 loc) · 801 Bytes

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,
  getFileContent,
  setFileContent,
  getJSONFileObj,
  getPath,
  getFullPath,
  getResolvePath,
  getAllFilePath,
  cmd,
  node2es6,
  sortJSON,
  mergeObj,
  versionUpgrade
} = require('js-xcmd');

Test Package.json.bin.xxx

npm link
npm run bind
npm unlink
npm run unbind

npm run i:local

Others