{"id":22220537,"url":"https://github.com/drawbotics/file-wrapper","last_synced_at":"2025-03-25T07:41:29.935Z","repository":{"id":57143348,"uuid":"130049937","full_name":"Drawbotics/file-wrapper","owner":"Drawbotics","description":"A small class wrapping a node file to provide some common fields.","archived":false,"fork":false,"pushed_at":"2018-04-18T11:09:17.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-22T03:07:55.177Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Drawbotics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-18T11:08:54.000Z","updated_at":"2018-04-18T11:09:11.000Z","dependencies_parsed_at":"2022-09-03T17:31:52.348Z","dependency_job_id":null,"html_url":"https://github.com/Drawbotics/file-wrapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawbotics%2Ffile-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawbotics%2Ffile-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawbotics%2Ffile-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drawbotics%2Ffile-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Drawbotics","download_url":"https://codeload.github.com/Drawbotics/file-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245422921,"owners_count":20612725,"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-12-02T23:09:01.457Z","updated_at":"2025-03-25T07:41:29.904Z","avatar_url":"https://github.com/Drawbotics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File Wrapper\n\nA small class wrapping a node file to provide some common fields.\n\n\n## Usage Example\n\n```javascript\nconst fs = require('fs-extra');\nconst File = require('file-wrapper');\n\n\nasync function main() {\n  const filePath = '/folder/file.txt';\n  const fileData = await fs.readFile(filePath);\n\n  const file = new File(filePath, fileData);\n\n  console.log(file.name);  // file.txt\n  console.log(file.dir);   // /folder\n  console.log(file.data);  // file contents\n  console.log(file.path);  // /folder/file.txt\n}\n```\n\n\n## LICENSE\n\nMIT. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawbotics%2Ffile-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrawbotics%2Ffile-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrawbotics%2Ffile-wrapper/lists"}