{"id":15660378,"url":"https://github.com/linusu/node-ds-store","last_synced_at":"2025-04-30T22:21:59.611Z","repository":{"id":12907657,"uuid":"15584927","full_name":"LinusU/node-ds-store","owner":"LinusU","description":".DS_Store manipulation and creation from node.js","archived":false,"fork":false,"pushed_at":"2021-10-29T00:57:07.000Z","size":49,"stargazers_count":22,"open_issues_count":2,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T03:16:37.638Z","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/LinusU.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":"2014-01-02T14:07:26.000Z","updated_at":"2024-06-21T23:51:35.000Z","dependencies_parsed_at":"2022-09-07T17:23:04.657Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/node-ds-store","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-ds-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-ds-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-ds-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2Fnode-ds-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/node-ds-store/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251790210,"owners_count":21644181,"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-03T13:21:23.535Z","updated_at":"2025-04-30T22:21:59.587Z","avatar_url":"https://github.com/LinusU.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-ds-store\n\n.DS_Store manipulation and creation from node.js\n\n## Status\n\nCurrently the implementation uses a pre-created `.DS_Store` file\nwhich it then modifies to suit the needs. This places several\nlimitations and also only allows creating new files from scratch.\n\n## Installation\n\n```sh\nnpm install ds-store\n```\n\n## Usage\n\n```javscript\nvar DSStore = require('ds-store');\n\nvar file = new DSStore();\n```\n\n## API\n\n### file.setBackgroundPath(path)\n\nSet the background image to file specified by `path`.\n\n### file.setBackgroundColor(red, green, blue)\n\nSet the background color to the color specified by three floats between 0 and 1.\n\n### file.setIconSize(size)\n\nSet the size of all icons in the folder to `size`.\n\n### file.setIconPos(name, x, y)\n\nPosition a file icon for file named `name` at `x, y`.\n\n### file.setWindowPos(x, y)\n\nSet the Finder window position to `x, y`.\n\n### file.setWindowSize(w, h)\n\nSet the Finder window size to `w, h`.\n\n### file.vSrn(value)\n\nSet the `vSrn` value to either `0` or `1`.\n\nEffect currently unknown.\n\n### file.write(path, cb)\n\nWrite the `.DS_Store` information to file at `path`.\n\n`cb` will get called with `err` upon file creation.\n\n## Future\n\nI have started work on a Buddy Allocator and B-Tree implementation,\nbut there is still lots of work required. Having theese would make\nit easy to both read and manipulate files. It also wouldn't require\nshipping a `DSStore-clean` file.\n\n## Thanks\n\nA special thanks to Wim Lewis who have written a complete implementation\nin perl. His documentation of the file format helped me very much.\n\nhttp://search.cpan.org/~wiml/Mac-Finder-DSStore/DSStoreFormat.pod\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-ds-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinusu%2Fnode-ds-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinusu%2Fnode-ds-store/lists"}