1.0.8 • Published 10 months ago

@editide/file-management v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

node-file-management

Set of JS objects to manage files using Node JS

Installation

npm install @editide/file-management

Example usage

Watch the example-usage script.

You can execute it using npm run test

Otherwise, simply import it like so :

const { ServerFile, ServerFolder } = require("@editide/file-management");

You can instanciate a file object using it's exact path with filePath

const rootPath = require("./rootPath"); // Returns this project root folder's path
new ServerFile({
    filePath: rootPath + "LICENCE",
});

or with serapate fields :

const readmeFile = new ServerFile({
    folderPath: rootPath,
    name: "README",
    extension: "md"
});

Then just add a dot to the file object and Ctrl + Space to autocomplete to see properties and methods.

Notes

It may be imperfect, but it does already helps me winning a lot of time.

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago