1.10.5 • Published 2 years ago
fsma v1.10.5
File system Manager
Are you tired of typing code to create a file or delete a folder And Are tired to delete a folder, which contains files ? It is very painful, and we know it. So in this package we created a File System that you can use for deleting and appending and creating files with less code and of course we added more features that can might help you. So let's see...
Features
write less code
more functionalities
Easy to learn
It is so small package
Installation
Install File System Manager with npm
npm install fsma
Functions
see all functions
const fs = require("fsma");
fs.know()
/*Note: It will shows all the functions in the Programm */
remove directory
const fs = require("fsma");
fs.rmdir("folder name or folder path")
//All required
reading directory
const fs = require("fsma");
fs.readdir("folder name or folder path")
//All required
creating directory
const fs = require("fsma");
fs.mkdir(
"directory name",
['files that you want']
)
//first parameter required
// Second parameter optional
rename directory
const fs = require("fsma");
fs.redir(
"directory name",
"New directory name,
)
//All required
Appending file to a directory
const fs = require("fsmaa");
fs.apdir(
"directory name",
"file that you want'
)
//All required
Moving file
const fs = require("fsma");
fs.moveFile(
"File name",
"Directory path or name",
"if you want to delete the root file write true , else false or let it "
)
//All required but the third parameter is optional and
Deleting file
const fs = require("fsma");
fs.unlink(
"file name or path"
)
//All required
read Filenew
const fs = require("fsma");
fs.readFile(
"File name or path"
)
//All required
//It will work now with Strams so you can read more big files
appending to a file
const fs = require("fsma");
fs.appendFile(
"File name",
"what you want to append"
)
//All required
creating File
const fs = require("fsma");
fs.createFile(
"File name",
"File content"
)
//First parameter required
// Second is optional
reanme file
const fs = require("fsma");
fs.renameFile(
"File name",
"New file name"
)
//All required
search in a directory
const fs = require("fsma");
fs.searchdir("directory name","file name")
//All required
/*Note: if the program find the file it will return success massage if not it will return
failed massage*/
search a word in a file
const fs = require("fsma");
fs.searchdir("file name","what are you searching for")
//All required
/*Note: if the program find the word it will return success massage if not it will return
failed massage*/
creating your environmentnew
const fs = require("fsma");
fs.createEnviroment(true)
//All optional
/*Note: It will creating :
readme.md
app.js with A http server[new]
And if the the parameter is true it will create a static folder with:
index.html
style.css
index.js
*/
Authors
Feedback
If you have any feedback, please reach out to us at abdelraman.shaheen@kgs-badlauterberg.de