1.0.0 • Published 4 months ago
youfile v1.0.0
YouFile
Manage your files and folders quickly and easily using the fs-extra
, mkdir
and json5
libraries.
!NOTE When doing
set
,copy
,move
if the directory does not exist it will be completed
Use
Module
import yfile from "youfile";
Commonjs
const yfile = require("youfile");
yfile.set
Create File
yfile.set(src, data);
!TIP If you are working with
objects
you can put theobject
directly as data in thejson
file.
Create Folder
To create a folder you just have to put false
in the data
yfile.set(src, false);
yfile.get
yfile.get(src);
!NOTE When obtaining data from a file with the extension
.json
it will already be an object
yfile.remove
Deletes files and directories
yfile.remove(src);
yfile.copy
Copy files and directories
yfile.copy(src, dest);
yfile.move
Move files and directories
yfile.move(src, dest);
1.0.0
4 months ago