{"id":15355012,"url":"https://github.com/capaj/object-fsify","last_synced_at":"2025-07-06T23:05:00.784Z","repository":{"id":66342153,"uuid":"130836494","full_name":"capaj/object-fsify","owner":"capaj","description":"file system persisted variables as simple as it ever will be","archived":false,"fork":false,"pushed_at":"2018-04-30T00:40:56.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T22:05:18.806Z","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/capaj.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-24T10:23:47.000Z","updated_at":"2018-04-30T00:40:57.000Z","dependencies_parsed_at":"2023-02-24T23:00:17.740Z","dependency_job_id":null,"html_url":"https://github.com/capaj/object-fsify","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"87489cd53eb92b566382251603f9a2bbd28ad7d2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/capaj/object-fsify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fobject-fsify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fobject-fsify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fobject-fsify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fobject-fsify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capaj","download_url":"https://codeload.github.com/capaj/object-fsify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fobject-fsify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263986226,"owners_count":23539808,"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-01T12:22:06.979Z","updated_at":"2025-07-06T23:05:00.767Z","avatar_url":"https://github.com/capaj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# object-fsify\n\nfile system persisted variables as simple as it ever will be with the help of ES6 Proxies magic.\n\n```javascript\n// myAwesomeNodejsScript.js\nconst a = objectFsify([], 'myArray.json')\n\na.push(10)\n// myArray.json is now '[10]')\na.push(20)\n// myArray.json is now '[10, 20]')\na.push(33)\n// myArray.json is now '[10,20,33]')\n\n// of course it works the same with objects\nconst a = objectFsify({} 'myObject.json')\n\na.b = 10\n// myObject.json is now '{b: 10}')\n```\n\nWhen you run the script `myAwesomeNodejsScript.js` again, all the numbers will be there twice in the array as you would expect-file is loaded up when you initialise the `a` variable.\n\n## options\n\n```javascript\n{\n  async: true,  // default false, true makes fs operation async\n  indent: 2 // default is none, 2 makes JSON file indents 2 spaces\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapaj%2Fobject-fsify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapaj%2Fobject-fsify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapaj%2Fobject-fsify/lists"}