{"_id":"ds-store","_rev":"4244891","name":"ds-store","description":".DS_Store manipulation and creation from node.js","dist-tags":{"latest":"0.1.6"},"maintainers":[{"name":"cstruct","email":""},{"name":"linusu","email":""}],"time":{"modified":"2026-03-29T21:28:33.000Z","created":"2014-01-07T13:01:40.485Z","0.1.6":"2016-05-15T22:37:25.965Z","0.1.5":"2016-05-15T18:45:51.820Z","0.1.4":"2014-12-10T23:25:49.657Z","0.1.3":"2014-12-10T22:54:06.284Z","0.1.2":"2014-07-07T20:35:20.259Z","0.1.1":"2014-01-13T10:27:07.450Z","0.1.0":"2014-01-07T13:01:40.485Z"},"users":{},"author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-ds-store.git"},"versions":{"0.1.6":{"name":"ds-store","version":"0.1.6","license":"MIT","main":"index.js","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"scripts":{"test":"standard"},"dependencies":{"bplist-creator":"~0.0.3","macos-alias":"~0.2.5","tn1150":"^0.1.0"},"contributors":[{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},{"name":"Davide Liessi","email":"davide.liessi@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-ds-store.git"},"devDependencies":{"standard":"^7.0.1"},"gitHead":"75b91d6cb6ee9b20012f3aae0dcff7f4ff990d12","description":".DS_Store manipulation and creation from node.js","bugs":{"url":"https://github.com/LinusU/node-ds-store/issues"},"homepage":"https://github.com/LinusU/node-ds-store#readme","_id":"ds-store@0.1.6","_shasum":"d1024ef746ed0c13f0f7fec85c7e858e8c4b7ca7","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"d1024ef746ed0c13f0f7fec85c7e858e8c4b7ca7","size":7111,"noattachment":false,"key":"/ds-store/-/ds-store-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/ds-store/download/ds-store-0.1.6.tgz"},"maintainers":[{"name":"cstruct","email":""},{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ds-store-0.1.6.tgz_1463351843719_0.8891183969099075"},"directories":{},"publish_time":1463351845965,"_hasShrinkwrap":false,"_cnpm_publish_time":1463351845965,"_cnpmcore_publish_time":"2021-12-17T01:46:35.584Z"},"0.1.5":{"name":"ds-store","version":"0.1.5","license":"MIT","main":"index.js","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"scripts":{"test":"standard"},"dependencies":{"bplist-creator":"~0.0.3","macos-alias":"~0.2.5","tn1150":"^0.1.0"},"contributors":[{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},{"name":"Davide Liessi","email":"davide.liessi@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/LinusU/node-ds-store.git"},"devDependencies":{"standard":"^7.0.1"},"gitHead":"94c6b3a1a53af7af26f2fc88a90b581712dcd007","description":".DS_Store manipulation and creation from node.js","bugs":{"url":"https://github.com/LinusU/node-ds-store/issues"},"homepage":"https://github.com/LinusU/node-ds-store#readme","_id":"ds-store@0.1.5","_shasum":"c5d3696b5dd94d7b39361a2c0f7672a38ba86185","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"c5d3696b5dd94d7b39361a2c0f7672a38ba86185","size":6944,"noattachment":false,"key":"/ds-store/-/ds-store-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/ds-store/download/ds-store-0.1.5.tgz"},"maintainers":[{"name":"cstruct","email":""},{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ds-store-0.1.5.tgz_1463337949566_0.05471850070171058"},"directories":{},"publish_time":1463337951820,"_hasShrinkwrap":false,"_cnpm_publish_time":1463337951820,"_cnpmcore_publish_time":"2021-12-17T01:46:35.778Z"},"0.1.4":{"name":"ds-store","version":"0.1.4","license":"MIT","main":"index.js","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"dependencies":{"macos-alias":"~0.2.5","bplist-creator":"~0.0.3","unorm":"~1.3.3"},"contributors":[{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},{"name":"Davide Liessi","email":"davide.liessi@gmail.com"}],"repository":{"type":"git","url":"http://github.com/LinusU/node-ds-store.git"},"gitHead":"80673a3528f374379b985a657768c9303f72205b","description":".DS_Store manipulation and creation from node.js","bugs":{"url":"https://github.com/LinusU/node-ds-store/issues"},"homepage":"https://github.com/LinusU/node-ds-store","_id":"ds-store@0.1.4","scripts":{},"_shasum":"17a02cb8c88b907ee07a12e5d5417bf1edb7dd22","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"maintainers":[{"name":"cstruct","email":""},{"name":"linusu","email":""}],"dist":{"shasum":"17a02cb8c88b907ee07a12e5d5417bf1edb7dd22","size":8093,"noattachment":false,"key":"/ds-store/-/ds-store-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/ds-store/download/ds-store-0.1.4.tgz"},"directories":{},"publish_time":1418253949657,"_hasShrinkwrap":false,"_cnpm_publish_time":1418253949657,"_cnpmcore_publish_time":"2021-12-17T01:46:36.003Z"},"0.1.3":{"name":"ds-store","version":"0.1.3","license":"MIT","main":"index.js","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"dependencies":{"macos-alias":"~0.2.0","bplist-creator":"~0.0.3","unorm":"~1.3.3"},"contributors":[{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},{"name":"Davide Liessi","email":"davide.liessi@gmail.com"}],"repository":{"type":"git","url":"http://github.com/LinusU/node-ds-store.git"},"gitHead":"be20977f6d8ec1f1f36a3a21e6adb45701305015","description":".DS_Store manipulation and creation from node.js","bugs":{"url":"https://github.com/LinusU/node-ds-store/issues"},"homepage":"https://github.com/LinusU/node-ds-store","_id":"ds-store@0.1.3","scripts":{},"_shasum":"f8e5a6d4c2b754aefc16ab2a738e980b8cae6bfc","_from":".","_npmVersion":"2.1.10","_nodeVersion":"0.10.33","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"maintainers":[{"name":"cstruct","email":""},{"name":"linusu","email":""}],"dist":{"shasum":"f8e5a6d4c2b754aefc16ab2a738e980b8cae6bfc","size":8090,"noattachment":false,"key":"/ds-store/-/ds-store-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ds-store/download/ds-store-0.1.3.tgz"},"directories":{},"publish_time":1418252046284,"_hasShrinkwrap":false,"_cnpm_publish_time":1418252046284,"_cnpmcore_publish_time":"2021-12-17T01:46:36.193Z"},"0.1.2":{"name":"ds-store","version":"0.1.2","main":"index.js","author":{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},"dependencies":{"macos-alias":"~0.2.0","bplist-creator":"~0.0.3","unorm":"~1.3.3"},"contributors":[{"name":"Linus Unnebäck","email":"linus@folkdatorn.se"},{"name":"Davide Liessi","email":"davide.liessi@gmail.com"}],"gitHead":"87d0a6763e61ac6f381559e4c518aa731cbd81fa","description":".DS_Store manipulation and creation from node.js","_id":"ds-store@0.1.2","scripts":{},"_shasum":"4e9478d6064b210ec68f2290ec388b1e6459a66d","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"maintainers":[{"name":"cstruct","email":""},{"name":"linusu","email":""}],"dist":{"shasum":"4e9478d6064b210ec68f2290ec388b1e6459a66d","size":8047,"noattachment":false,"key":"/ds-store/-/ds-store-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ds-store/download/ds-store-0.1.2.tgz"},"directories":{},"publish_time":1404765320259,"_hasShrinkwrap":false,"_cnpm_publish_time":1404765320259,"_cnpmcore_publish_time":"2021-12-17T01:46:36.765Z"},"0.1.1":{"name":"ds-store","version":"0.1.1","main":"index.js","dependencies":{"macos-alias":"~0.2.0","bplist-creator":"git://github.com/LinusU/node-bplist-creator"},"readmeFilename":"README.md","description":".DS_Store manipulation and creation from node.js","_id":"ds-store@0.1.1","dist":{"shasum":"cfb37d2678db4125a8d1df85e256586a3afb59ae","size":6694,"noattachment":false,"key":"/ds-store/-/ds-store-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ds-store/download/ds-store-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"maintainers":[{"name":"cstruct","email":""},{"name":"linusu","email":""}],"directories":{},"publish_time":1389608827450,"_hasShrinkwrap":false,"_cnpm_publish_time":1389608827450,"_cnpmcore_publish_time":"2021-12-17T01:46:37.006Z"},"0.1.0":{"name":"ds-store","version":"0.1.0","main":"index.js","dependencies":{"macos-alias":"~0.1.2","bplist-creator":"git://github.com/LinusU/node-bplist-creator"},"readmeFilename":"README.md","description":".DS_Store manipulation and creation from node.js","_id":"ds-store@0.1.0","dist":{"shasum":"5793ecd5b7765ece65978f4e21016bf252680754","size":6733,"noattachment":false,"key":"/ds-store/-/ds-store-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ds-store/download/ds-store-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"maintainers":[{"name":"cstruct","email":""},{"name":"linusu","email":""}],"directories":{},"publish_time":1389099700485,"_hasShrinkwrap":false,"_cnpm_publish_time":1389099700485,"_cnpmcore_publish_time":"2021-12-17T01:46:37.302Z"}},"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","_attachments":{},"homepage":"https://github.com/LinusU/node-ds-store#readme","bugs":{"url":"https://github.com/LinusU/node-ds-store/issues"},"license":"MIT"}