youfile

1.0.0 • Public • Published

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);

Package Sidebar

Install

npm i youfile

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

4.75 kB

Total Files

10

Last publish

Collaborators

  • fedyou