https://github.com/systemlight/halfigs
:white_flower: Halfigs allows you to delete, copy or create folders directly.【递归操作文件工具】
https://github.com/systemlight/halfigs
files filesystem javascript node8 nodejs
Last synced: 3 months ago
JSON representation
:white_flower: Halfigs allows you to delete, copy or create folders directly.【递归操作文件工具】
- Host: GitHub
- URL: https://github.com/systemlight/halfigs
- Owner: SystemLight
- License: mit
- Created: 2020-01-06T08:08:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T05:45:53.000Z (over 2 years ago)
- Last Synced: 2025-02-14T12:18:07.979Z (11 months ago)
- Topics: files, filesystem, javascript, node8, nodejs
- Language: JavaScript
- Homepage: https://github.com/SystemLight/halfigs/wiki
- Size: 526 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# halfigs
[](https://www.npmjs.com/package/halfigs)
Halfigs allows you to delete, copy or create folders directly.
NPM page: https://www.npmjs.com/package/halfigs
# Installation
```
npm install halfigs
```
# User Guide
```
const {halfigs} = require('./main.bundle');
const {
info,
create,
copy,
remove
}=halfigs
copy.cp("./index.html", "./a/b/index.html").then(result => {
console.log("cp", result);
return remove.rm("./a");
}).then(result => {
console.log("rm", result);
});
create.createNestedFile("./k/b/c/index.txt", "hello,file").then(result => {
console.log("createNestedFile", result);
return info.exists("./k/b/c/index.txt");
}).then(result => {
console.log("exists", result);
});
```
# Note
- None
# Resources
You can read [halfigs Documentation](https://github.com/SystemLight/halfigs/wiki/API-Document) online for more
information.
# License
halfigs uses the MIT license, see LICENSE file for the details.