{"id":15069868,"url":"https://github.com/v-core9/v_file_system","last_synced_at":"2026-01-19T21:33:27.130Z","repository":{"id":42574441,"uuid":"395103672","full_name":"V-core9/v_file_system","owner":"V-core9","description":"V_FS - Helper module for easy and safe way to save/delete/read... using node fs built in module. Has both SYNC and PROMISE based options.","archived":false,"fork":false,"pushed_at":"2023-03-06T17:27:39.000Z","size":633,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T07:09:59.708Z","etag":null,"topics":["async","await","files","fs","isdir","isfile","jest","mkdir","node-js","nodefs","nodejs","promises","sync","unit-test","v-core9","v-file-system","write","writesync"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/v_file_system","language":"JavaScript","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/V-core9.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-11T20:02:41.000Z","updated_at":"2022-01-03T21:18:04.000Z","dependencies_parsed_at":"2025-02-10T14:42:56.885Z","dependency_job_id":"dfedd5ce-8e8c-4689-9757-dd28aa95aeb2","html_url":"https://github.com/V-core9/v_file_system","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/V-core9%2Fv_file_system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/V-core9%2Fv_file_system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/V-core9%2Fv_file_system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/V-core9%2Fv_file_system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/V-core9","download_url":"https://codeload.github.com/V-core9/v_file_system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299844,"owners_count":20916192,"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":["async","await","files","fs","isdir","isfile","jest","mkdir","node-js","nodefs","nodejs","promises","sync","unit-test","v-core9","v-file-system","write","writesync"],"created_at":"2024-09-25T01:45:15.621Z","updated_at":"2026-01-19T21:33:27.094Z","avatar_url":"https://github.com/V-core9.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔽 v_file_system =\u003e v_fs \n**\u003c[-v-]\u003e** Node Module File System Handler\n\n[![njsscan sarif](https://github.com/V-core9/v_fs/actions/workflows/njsscan-analysis.yml/badge.svg)](https://github.com/V-core9/v_fs/actions/workflows/njsscan-analysis.yml) [![OSSAR](https://github.com/V-core9/v_fs/actions/workflows/ossar-analysis.yml/badge.svg)](https://github.com/V-core9/v_fs/actions/workflows/ossar-analysis.yml)  \n\n---\n\n## ➿ How To Install  \n\nJust run the install command \n\n\n    npm install v_file_system --save\n\n\n## 🎮 How to use  \n\nWell just load it as a constant...\n\n    \n    \n    const v_fs = require('v_file_system');\n\n    v_fs.statsDir('.');\n\n---\n## 🔱 ASYNC  \n\n### 🔹 v_fs.{methodName}\n\n    v_fs.mkdir (path, options = {}) ;\n    v_fs.write(filePath, content, encoding = 'utf8') ;\n    v_fs.deleteFile (filePath);\n    v_fs.isDir (dirPath);\n    v_fs.isFile (filePath);\n    v_fs.read (filePath,  encoding = \"utf8\");\n    v_fs.removeDir (dirPath, options = {recursive: true});\n    v_fs.statsDir (dirPath);\n    v_fs.statsFile (filePath);\n    v_fs.copy (filePath, destinationPath);\n\n \n### 🔹 v_fs.promise.{methodName}\n\n    v_fs.promise.mkdir (path, options = {}) ;\n    v_fs.promise.write(filePath, content, encoding = 'utf8') ;\n    v_fs.promise.deleteFile (filePath);\n    v_fs.promise.isDir (dirPath);\n    v_fs.promise.isFile (filePath);\n    v_fs.promise.read (filePath,  encoding = \"utf8\");\n    v_fs.promise.removeDir (dirPath, options = {recursive: true});\n    v_fs.promise.statsDir (dirPath);\n    v_fs.promise.statsFile (filePath);\n    v_fs.promise.copy (filePath, destinationPath);\n    \n---\n\n## 🚦 SYNC  \n\n### 🔸 v_fs.{methodName + \"Sy\"}  - - - -\n    v_fs.mkdirSy (path, options = {}) ;\n    v_fs.writeSy (filePath, content, encoding = 'utf8') ;\n    v_fs.deleteFileSy (filePath);\n    v_fs.isDirSy (dirPath);\n    v_fs.isFileSy (filePath);\n    v_fs.readSy (filePath,  encoding = \"utf8\");\n    v_fs.removeDirSy (dirPath, options = {recursive: true});\n    v_fs.statsDirSy (dirPath);\n    v_fs.statsFileSy (filePath);\n\n### 🔸 v_fs.sync.{methodName}\n    v_fs.sync.mkdir (path, options = {}) ;\n    v_fs.sync.write(filePath, content, encoding = 'utf8') ;\n    v_fs.sync.deleteFile (filePath);\n    v_fs.sync.isDir (dirPath);\n    v_fs.sync.isFile (filePath);\n    v_fs.sync.read (filePath,  encoding = \"utf8\");\n    v_fs.sync.removeDir (dirPath, options = {recursive: true});\n    v_fs.sync.statsDir (dirPath);\n    v_fs.sync.statsFile (filePath);\n    \n---\n## 🔂 ByteSizer  \n\n### Byte to \u003e  \n    v_fs.byteSizer.byteToKilo(size)\n    v_fs.byteSizer.byteToMega(size)\n    v_fs.byteSizer.byteToGiga(size)\n    v_fs.byteSizer.byteToTera(size)\n\n### Kilobyte to \u003e  \n    v_fs.byteSizer.kiloToByte(size)\n    v_fs.byteSizer.kiloToMega(size)\n    v_fs.byteSizer.kiloToGiga(size)\n    v_fs.byteSizer.kiloToTera(size)\n\n### Megabyte to \u003e  \n    v_fs.byteSizer.megaToByte(size)\n    v_fs.byteSizer.megaToKilo(size)\n    v_fs.byteSizer.megaToGiga(size)\n    v_fs.byteSizer.megaToTera(size)\n\n### Gigabyte to \u003e  \n    v_fs.byteSizer.gigaToByte(size)\n    v_fs.byteSizer.gigaToKilo(size)\n    v_fs.byteSizer.gigaToMega(size)\n    v_fs.byteSizer.gigaToTera(size)\n### Terabyte to \u003e  \n    v_fs.byteSizer.teraToByte(size)\n    v_fs.byteSizer.teraToKilo(size)\n    v_fs.byteSizer.teraToMega(size)\n    v_fs.byteSizer.teraToGiga(size)\n\n\n## ✅ Test Results and Coverage with Jest\n\n![Test and Coverage with Jest](v_fs.coverage.png)\n\n---\n\n### 👻 Author: **-\u003c[\\_.⟁.\\_]\u003e-**  \n\n### ⏰ CreatedTime: 11.08.2021 @ 21:51  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-core9%2Fv_file_system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fv-core9%2Fv_file_system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fv-core9%2Fv_file_system/lists"}