my-file-settings
v2.2.0
Published
It serves to create, change and delete a file
Downloads
8
Readme
When using this package, all arguments are written in strings
createFl this function is used to create a file and write the code in the created file and the arguments of this file are in "string" even the codes are written in "string" and the first argument is the type of file and the second argument is to write the code, if this second argument is not given then we, the word "new file" will greet us in the created file.
example:
const {createFl} = require("my-file-settings")
createFl("js") or createFl("js", "alert("new file")")
updateFl this function is used to update the file name or type and the arguments of this file are in "string" and the first argument is the name of the file to be changed and the second argument is the name of the new file.
example:
const {updateFl} = require("my-file-settings")
updateFl("index.js", "index.html")
deleteFl this function is used to delete a file and the arguments of this file are in "string" and there is one argument which is written with the type of the file name to be deleted
example:
const {deleteFl} = require("my-file-settings")
deleteFl("index.js")