{"id":21278370,"url":"https://github.com/wdalmut/file-attributes","last_synced_at":"2025-03-15T13:40:59.862Z","repository":{"id":57235341,"uuid":"83959502","full_name":"wdalmut/file-attributes","owner":"wdalmut","description":"Simple per-file attributes system","archived":false,"fork":false,"pushed_at":"2017-03-05T15:50:55.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T04:34:29.827Z","etag":null,"topics":["attributes","file","file-attributes","library"],"latest_commit_sha":null,"homepage":null,"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/wdalmut.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":"2017-03-05T09:40:48.000Z","updated_at":"2019-07-09T11:58:53.000Z","dependencies_parsed_at":"2022-08-31T20:51:24.709Z","dependency_job_id":null,"html_url":"https://github.com/wdalmut/file-attributes","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/wdalmut%2Ffile-attributes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Ffile-attributes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Ffile-attributes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wdalmut%2Ffile-attributes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wdalmut","download_url":"https://codeload.github.com/wdalmut/file-attributes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243738954,"owners_count":20339997,"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":["attributes","file","file-attributes","library"],"created_at":"2024-11-21T10:12:51.032Z","updated_at":"2025-03-15T13:40:59.831Z","avatar_url":"https://github.com/wdalmut.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Per file attributes\n\nJust a simple per-file attributes system\n\n```js\nvar kv = require('file-attributes');\n\nvar attributes = kv(\"/path/to/disk\"); // where to store\n\nattributes.set(\"/home/user/documents/file.txt\", JSON.stringify({\n  ready: true,\n  signed: false\n}), function(err, data) {\n  // on success/failure\n});\n\nattributes.get(\"/home/user/documents/file.txt\", (err, data) =\u003e {\n  if (err) {\n    // fail\n  }\n\n  data = JSON.parse(data);\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdalmut%2Ffile-attributes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwdalmut%2Ffile-attributes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdalmut%2Ffile-attributes/lists"}