1.0.0 • Published 4 months ago

youfile v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

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 the object directly as data in the json 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);