{"id":28255053,"url":"https://github.com/depthbomb/windows-file-attributes","last_synced_at":"2025-06-16T06:31:40.890Z","repository":{"id":288208229,"uuid":"967195506","full_name":"depthbomb/windows-file-attributes","owner":"depthbomb","description":"A pure TypeScript library for setting and reading file attributes on Windows","archived":false,"fork":false,"pushed_at":"2025-05-01T06:02:25.000Z","size":2044,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T20:19:27.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/depthbomb.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,"zenodo":null}},"created_at":"2025-04-16T04:43:25.000Z","updated_at":"2025-05-01T06:01:18.000Z","dependencies_parsed_at":"2025-04-16T05:58:06.271Z","dependency_job_id":"bb439fa3-46bb-4695-89e2-5edc808dbda8","html_url":"https://github.com/depthbomb/windows-file-attributes","commit_stats":null,"previous_names":["depthbomb/windows-file-attributes"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/depthbomb/windows-file-attributes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depthbomb%2Fwindows-file-attributes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depthbomb%2Fwindows-file-attributes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depthbomb%2Fwindows-file-attributes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depthbomb%2Fwindows-file-attributes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/depthbomb","download_url":"https://codeload.github.com/depthbomb/windows-file-attributes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depthbomb%2Fwindows-file-attributes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260114393,"owners_count":22960894,"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":"2025-05-19T20:16:56.608Z","updated_at":"2025-06-16T06:31:40.864Z","avatar_url":"https://github.com/depthbomb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# windows-file-attributes\n\nA pure TypeScript library for setting and reading file attributes on Windows.\n\n## Features\n\n- Reading attributes of a file\n- Adding attributes to a file\n- Checking if a file has one or more attributes\n- No dependencies\n- Written entirely in TypeScript\n- Great with Electron!\n\n## Installation\n\n```sh\nnpm i windows-file-attributes\n\n# or\n\nyarn add windows-file-attributes\n```\n\n## Some examples\n\n```ts\nimport { hasAttribute, FileAttribute } from 'windows-file-attributes';\n\nconst isReadOnly = await hasAttribute('./file.txt', FileAttribute.READONLY);\nconsole.log(isReadOnly); // boolean\n```\n\n\n```ts\nimport { getAttributeNames } from 'windows-file-attributes';\n\nconst names = await getAttributeNames('./file.txt');\nconsole.log(names); // [READONLY, COMPRESSED, ARCHIVE]\n```\n\n```ts\nimport { setAttributes, FileAttribute } from 'windows-file-attributes';\n\nawait setAttributes('./file.txt', [FileAttribute.HIDDEN]);\n```\n\nConsult the TSDoc for each function for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepthbomb%2Fwindows-file-attributes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdepthbomb%2Fwindows-file-attributes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepthbomb%2Fwindows-file-attributes/lists"}