Skip to content

Node-File-Structure is a package to sort your files with node.js

Notifications You must be signed in to change notification settings

olebohmbach/node-file-structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node File Structure

About

Node File Structure is a Node.js module that allows you to easily sort all your Files in a directory.

Installation

Node.js 16.6.0 or newer is required.

npm i node-file-structure

Example usage

Install all required dependencies:

npm i node-file-structure

How to use the Package:

Template

let structure = require('node-file-structure');
let Folder = ['FOLDER1', 'FOLDER2']; // You can add so much Folders as you want here! e.g. ['C:/Users/admin/Pictures', 'C:/Users/admin/Downloads']
structure.sortFolder(Folder); 

This moves all Files in Subfolders, see the graphic example below

Example (graphical)

Before:

📦 path/to/specified-directory
 ┣📜 file1.png
 ┣📜 file2.exe
 ┗📜 file3.jpg

After:

📦 path/to/specified-directory
 ┣📂 .png
 ┃ ┗📜 file1.png
 ┣📂 .exe
 ┃ ┗📜 file2.exe
 ┗📂 .jpg
   ┗📜 file2.jpg
 

Features

  • ✅ Sort by file extensions

Links

Contributing

Before creating an issue, please ensure that it hasn't already been reported!

About

Node-File-Structure is a package to sort your files with node.js

Resources

Stars

Watchers

Forks

Packages

No packages published