{"id":17066978,"url":"https://github.com/rhemon/node.js-file-management","last_synced_at":"2025-03-23T09:44:25.619Z","repository":{"id":83633347,"uuid":"20349187","full_name":"rhemon/Node.js-File-Management","owner":"rhemon","description":"This is just a simple module, making the coding of the basic tasks of file system, like creating a file, reading a file, renaming a file, etc. much easier.","archived":false,"fork":false,"pushed_at":"2014-05-31T07:37:38.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T16:30:34.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhemon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-31T04:37:22.000Z","updated_at":"2023-08-26T04:41:21.000Z","dependencies_parsed_at":"2023-02-25T16:30:52.920Z","dependency_job_id":null,"html_url":"https://github.com/rhemon/Node.js-File-Management","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhemon%2FNode.js-File-Management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhemon%2FNode.js-File-Management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhemon%2FNode.js-File-Management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhemon%2FNode.js-File-Management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhemon","download_url":"https://codeload.github.com/rhemon/Node.js-File-Management/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245084610,"owners_count":20558248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T11:08:57.624Z","updated_at":"2025-03-23T09:44:25.597Z","avatar_url":"https://github.com/rhemon.png","language":null,"readme":"Node.js-File-Management\n====================\n\u003cp\u003eThis is just a simple module, doing the basic tasks of file system, like creating a file, reading a file, renaming a file, etc.\nThis module just makes the codign simpler, meaning rather than repeating (for example to create a file): \u003c/p\u003e\n\n\u003cpre\u003e\nvar fs = require('fs');\nvar stream = fs.createWriteStream(\"tmp/file\");\nstream.once('open', function (fd) {\n    stream.write(\"Hello World\");\n    stream.end();\n});\n\u003c/pre\u003e\n\n\u003cp\u003eusing this module I can simpley write :\u003c/p\u003e\n\u003cpre\u003e\nvar file = require('./fileManagement')\nfile.createFile(\"tmp/\", \"file\", \"Hello World\")\n\u003c/pre\u003e\n\n\u003cp\u003eBasically I made this simple module for my own practice, to learn about file system and a bit about modules. So as I was learning I made this module so that I can use it whenever I do a project where I will need to work file system.\u003c/p\u003e\n\n\u003cp\u003eFor now this module containes : \u003c/p\u003e\n\u003cdiv\u003e\n\u003cp\u003e\n\u003ccode\u003ecreateFile(path, fileName, message)\u003c/code\u003e\n  This is to create a new file, where you can also write something in that file.\u003c/p\u003e\n\u003cp\u003e\n\u003ccode\u003erewriteFile(path, fileName, message)\u003c/code\u003e\n  This writes an existing file, what it does is deletes everything that was there, and just adds the new message.\u003c/p\u003e\n\u003cp\u003e\n\u003ccode\u003ewriteFile(path, fileName, message)\u003c/code\u003e\n  This does the task of appending the message to the existing file. \u003c/p\u003e\n\u003cp\u003e\n\u003ccode\u003edeleteFile(path, fileName)\u003c/code\u003e\n  This deletes the file\u003c/p\u003e\n\u003cp\u003e\n\u003ccode\u003erenameFile(path, oldFileName, newFileName)\u003c/code\u003e\n  Renames the file\u003c/p\u003e\n\u003cp\u003e\n\u003ccode\u003ereadFile(path, fileName)\u003c/code\u003e\n  Reads the file and gives the content it has. \u003c/p\u003e\n\u003cp\u003e\n\u003ccode\u003ecopyFile(oldPath, fileName, newPath)\u003c/code\u003e\n  It copies the file into another directory. \u003c/p\u003e\n\u003cp\u003e\n\u003ccode\u003emoveFile(oldPath, fileName, newPath)\u003c/code\u003e\n  It moves the file into another directory. \u003c/p\u003e\n\u003c/div\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhemon%2Fnode.js-file-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhemon%2Fnode.js-file-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhemon%2Fnode.js-file-management/lists"}