Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/biugle/js-xcmd

JavaScript XCmd Tools. JavaScript 一个简单的 npm 命令行工具插件,便于管理项目。
https://github.com/biugle/js-xcmd

cmd js-cmd js-xcmd npm-cmd npm-xcmd xcmd

Last synced: 11 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# js-xcmd

## Install

```bash
npm i js-xcmd -g
```

## Use

```bash
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

```bash
npm link
npm run bind
npm unlink
npm run unbind

npm run i:local
```

## Others

* [Issue](https://github.com/biugle/js-xcmd/issues)
* [Pull Request](https://github.com/biugle/js-xcmd/pulls)
* [[email protected]](mailto:[email protected])