Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 命令行工具插件,便于管理项目。
- Host: GitHub
- URL: https://github.com/biugle/js-xcmd
- Owner: biugle
- License: mit
- Created: 2022-04-25T06:42:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-16T09:31:29.000Z (8 months ago)
- Last Synced: 2024-05-16T10:39:29.625Z (8 months ago)
- Topics: cmd, js-cmd, js-xcmd, npm-cmd, npm-xcmd, xcmd
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/js-xcmd
- Size: 39.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 unbindnpm 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])