Skip to content

💮 Halfigs allows you to delete, copy or create folders directly.【递归操作文件工具】

License

Notifications You must be signed in to change notification settings

SystemLight/halfigs

Repository files navigation

halfigs

NPM version

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 online for more information.

License

halfigs uses the MIT license, see LICENSE file for the details.