{"_id":"resin-image-fs","_rev":"47-350e1f48b9983a523f308472dd4aadf5","name":"resin-image-fs","description":"Resin.io image filesystem manipulation utilities","dist-tags":{"latest":"6.0.0"},"versions":{"1.0.0":{"name":"resin-image-fs","version":"1.0.0","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","bin":{"resinfs":"bin/resinfs"},"homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juanchiviotti@gmail.com"},"license":"MIT","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","capitano":"^1.6.1","fatfs":"^0.10.3","lodash":"^3.10.0","mbr":"^0.4.4","partitioninfo":"^1.0.0","resin-device-path":"^2.1.1"},"gitHead":"1d9cb0bc78f6a772d0f4e7de49e3a48aed3d66ed","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@1.0.0","_shasum":"de005fde7a1845e22bcc7eb68573bd205bb3a4d0","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"resin.io","email":"accounts+npm@resin.io"},"dist":{"shasum":"de005fde7a1845e22bcc7eb68573bd205bb3a4d0","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-1.0.0.tgz","integrity":"sha512-Y3ps8mSdFlvg/hFz+oG+G7PafKKqgUM9ABupL283KdGG/iLvEYqjmds82hr76vACcqzlNk+ACCP4f5Kr9Gf8Jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHEHhGmfAWUwD/rDA/5Tz2L3oiO2M3FIIsHalbI+c7NLAiEA9igDXXc36qjUh1bFC+MJvjGt+7lfT3ziZFTD2ctr8u0="}]},"maintainers":[{"name":"resin.io","email":"accounts+npm@resin.io"}],"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"2.0.0":{"name":"resin-image-fs","version":"2.0.0","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juanchiviotti@gmail.com"},"license":"MIT","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","fatfs":"^0.10.3","lodash":"^3.10.0","mbr":"^0.4.4","partitioninfo":"^1.0.0"},"gitHead":"bd0eef8cb0c8308ad217107dee954b8479e0c74e","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@2.0.0","_shasum":"f2dbc759b97a25dc56c8b95cce6c1d2b31f6204a","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"resin.io","email":"accounts+npm@resin.io"},"dist":{"shasum":"f2dbc759b97a25dc56c8b95cce6c1d2b31f6204a","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-2.0.0.tgz","integrity":"sha512-zRaDVRA5yTB8zxwVVxFEGgGcbEWFc/YVsKbFqRRDPsgHUpsH2h76vgc8fNSH+hIU9GRI4aPIgRzsHc79qYlE/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDK2Y7wMRFxoOnCNp5EGLu7H5FBXq5AFepxoJeh+pSDZwIgObD17F5v/PEa6Y7k4+V/Bd5Pv+dl0K9km+vbW4eQmuw="}]},"maintainers":[{"name":"resin.io","email":"accounts+npm@resin.io"}],"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"2.0.1":{"name":"resin-image-fs","version":"2.0.1","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juanchiviotti@gmail.com"},"license":"MIT","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","fatfs":"^0.10.3","lodash":"^3.10.0","mbr":"^0.4.4","partitioninfo":"^1.0.0"},"gitHead":"3aacdb8f917cc6a1fcfdb7a1bb3618431a1dc61e","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@2.0.1","_shasum":"ba88e5222be9bb2455654465f0dd317f03d32e97","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"resin.io","email":"accounts+npm@resin.io"},"dist":{"shasum":"ba88e5222be9bb2455654465f0dd317f03d32e97","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-2.0.1.tgz","integrity":"sha512-p13Y20IFNdSfBiNDzhnEMFFMeNYnaEM2nOjVD1I04xVnOPGodmpiZD3QRidr95t1BnnmAG1fUZLODaVS5xjroQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd90H/VUZ5c6lSC7Shbeg0f00z8nITLdWznVjytEfDjAIhALrEM5Y6iMe2gciUQxSM8ud7Ti6M5D2f0uq9JE5FpmGJ"}]},"maintainers":[{"name":"resin.io","email":"accounts+npm@resin.io"}],"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"2.1.0":{"name":"resin-image-fs","version":"2.1.0","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juanchiviotti@gmail.com"},"license":"MIT","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","fatfs":"^0.10.3","lodash":"^3.10.0","mbr":"^0.4.4","partitioninfo":"^1.0.0","replacestream":"^4.0.0"},"gitHead":"5b3ab0deadaa5baed3fb879dc824c2154fea9f00","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@2.1.0","_shasum":"b094708a6da23e93b8ee5a7314e596be427646c6","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"resin.io","email":"accounts+npm@resin.io"},"dist":{"shasum":"b094708a6da23e93b8ee5a7314e596be427646c6","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-2.1.0.tgz","integrity":"sha512-zpMDwtdSMhAl6sUAYvwham6LcgsWKv+66Ta6FX6J9p0QsIoe0ON+HN4dvqkWMr72/LTVutQwFAbcOM3TjQA7wg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBPit2JtUqzk9fVsKsaaLzP3kYGXAYanfUDUqyWaOwTAiAso2sp0GOYLBybkjHKjN494ZV17iI2VhWdID2vWrJBjQ=="}]},"maintainers":[{"name":"resin.io","email":"accounts+npm@resin.io"}],"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"2.1.1":{"name":"resin-image-fs","version":"2.1.1","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"license":"MIT","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","fatfs":"^0.10.3","lodash":"^3.10.0","mbr":"^0.4.4","partitioninfo":"^1.0.0","replacestream":"^4.0.0"},"gitHead":"328e5c140c5f870d33b53bfd13d1f4dac900259b","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@2.1.1","_shasum":"5249da9fb9ee99c9416df24bc66862f7c16a75c1","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"resin.io","email":"accounts+npm@resin.io"},"dist":{"shasum":"5249da9fb9ee99c9416df24bc66862f7c16a75c1","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-2.1.1.tgz","integrity":"sha512-tbiJnKgA/VnTpB8i1VPNDyTr5CsuJcyykWNhglNSQVOFUTJiVsgkjTHuyk/wyxn2EMDQD9g3q2vWbAjyojE0Kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiBuLWl2Ko9lHPxcWalxAjU8qQ7klPUC+ZR5VV6DeTkgIhAK0sjXi7qiL0yJ+rdXgvPxti0Hxk8myWgxdh5ELXtpyW"}]},"maintainers":[{"name":"resin.io","email":"accounts+npm@resin.io"}],"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"2.1.2":{"name":"resin-image-fs","version":"2.1.2","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"license":"MIT","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","fatfs":"^0.10.3","lodash":"^3.10.0","mbr":"^0.4.4","partitioninfo":"^1.0.0","replacestream":"^4.0.0"},"gitHead":"7e381bc73144b45c349ffcaa50e7c3b7baa74e78","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@2.1.2","_shasum":"ec5f5b8c2b878f3dab7e21472b4783d51def0e22","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"resin.io","email":"accounts+npm@resin.io"},"dist":{"shasum":"ec5f5b8c2b878f3dab7e21472b4783d51def0e22","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-2.1.2.tgz","integrity":"sha512-euHaIz18rp1+11eDUsA7m4QjNa5Jwstdl8yoXKk6BlLvX0tsWZ4ZfTym7RyNFxpAs3/WPZx00mVhJsyOA/MMaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjkRf6uA8v6OYh5raOX3YG28yxBSQsJob70z5ZxbPqQwIgbzbWsUF1NLUqI4GpgvFnd+LYbzGmeRwYw2Ti6Q8JRvU="}]},"maintainers":[{"name":"resin.io","email":"accounts+npm@resin.io"}],"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"2.2.0":{"name":"resin-image-fs","version":"2.2.0","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","fatfs":"^0.10.3","lodash":"^3.10.0","mbr":"^0.4.4","partitioninfo":"^1.0.0","replacestream":"^4.0.0"},"gitHead":"2bcaf7301374e2edd9c252df6a6eefaf58898c4e","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@2.2.0","_shasum":"a24b8e066662c3abc1d8416d875c7f6c47f265d4","_from":".","_npmVersion":"3.9.6","_nodeVersion":"6.1.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"a24b8e066662c3abc1d8416d875c7f6c47f265d4","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-2.2.0.tgz","integrity":"sha512-FNdXCDyWaZ/T5y7w/DGHspBqxUOBfgGTRea8c5HdFkTKu1UeMPEiMUiZ4iec1kZdJUfXcXjoRWNB4gu9zzBcOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKSpRTvg7IeHSHa+DbNWIjOfAE3NN1PaesD+7w+CFTZwIgaDuNfOWz7PLbjOKFnU4fJyo5W/vhGYcws1q6CFvs7fE="}]},"maintainers":[{"name":"resin.io","email":"accounts+npm@resin.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/resin-image-fs-2.2.0.tgz_1475533158782_0.20783682051114738"},"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"2.3.0":{"name":"resin-image-fs","version":"2.3.0","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","fatfs":"^0.10.3","lodash":"^3.10.0","mbr":"^0.4.4","partitioninfo":"^1.0.0","replacestream":"^4.0.0"},"gitHead":"bb10f22174aa21769bc9fd6fc0c91e2a195fcace","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@2.3.0","_shasum":"4c0927d98ec27a7cc58e304d758f25a0728f9b52","_from":".","_npmVersion":"3.9.6","_nodeVersion":"6.1.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"4c0927d98ec27a7cc58e304d758f25a0728f9b52","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-2.3.0.tgz","integrity":"sha512-xffDPR0NDQFg149cO23tVvyOTvGZVizAbRirNsuOoiH2gKJCQG5Po0v2BUVpU8x1m9qr8gL8XD8ZwZQARcuKpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChJLELIP1auiTbkZACVeYMXK0X7fGeaIBzPzQXbBL5ygIgImRUpa3cJ0dVOuYW7YTtqqWvJiltrAghHsEkOInVQjM="}]},"maintainers":[{"name":"resin.io","email":"accounts+npm@resin.io"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/resin-image-fs-2.3.0.tgz_1475640408885_0.6979041565209627"},"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"3.0.0":{"name":"resin-image-fs","version":"3.0.0","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","ext2fs":"0.0.9","fatfs":"^0.10.6","file-disk":"0.0.11","lodash":"^3.10.0","partitioninfo":"1.3.0","replacestream":"^4.0.0"},"gitHead":"13fc5c2e6d8a85628a9d1858c90d2327072ec351","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@3.0.0","_shasum":"64d44dc6beb9f6df7c8967f2784ac9b4e2b0643b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"64d44dc6beb9f6df7c8967f2784ac9b4e2b0643b","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-3.0.0.tgz","integrity":"sha512-M6au+n4z8CFZchhf3FdYj6IoQiQqV/Twu2uuNq21qS/CcS0GZX3GAYw1FF+7tnf9u7rpv2RJo77fiwc3s8akXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzSa8L/k8nijwLXpCrdyxsN9xy3HxstPNKVqdnumS8WAiEA3FbD0CZSFhvBsLJqPeguNQxgu6t5102Tv+IRHsJrE9k="}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs-3.0.0.tgz_1497869814843_0.7588414603378624"},"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"4.0.0":{"name":"resin-image-fs","version":"4.0.0","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","ext2fs":"0.0.9","fatfs":"^0.10.6","file-disk":"0.0.11","lodash":"^3.10.0","partitioninfo":"^2.0.0","replacestream":"^4.0.0"},"gitHead":"3b946b0d5cc7d96e62cf2c1754ea1e5aeb66856c","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@4.0.0","_shasum":"08d5b05a067cbcb284e3d0a1d455b4f1af0103e0","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"08d5b05a067cbcb284e3d0a1d455b4f1af0103e0","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-4.0.0.tgz","integrity":"sha512-34Erh/36myMGESS3MabzAmzf9YYjent0p3xn9J00UEAEeRFaA1cWGHZBWVVf6qDH40u+9rihb6ezIW742jAxuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFahs6ehX6MwR++WHeu0OqRZ5dlaj3jJ/w2Oh65dzLcgAiBNCvGztnpo6yQYdMfnLrXI1X6+2sIMYOn1eI/RDtk+CQ=="}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs-4.0.0.tgz_1497896433838_0.8959975196048617"},"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"4.0.1":{"name":"resin-image-fs","version":"4.0.1","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","ext2fs":"^0.0.12","fatfs":"^0.10.6","file-disk":"^1.0.1","lodash":"^3.10.0","partitioninfo":"^2.0.1","replacestream":"^4.0.0"},"gitHead":"613dd4e0a89d2621bbbd11173e04176f2c7fdc72","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@4.0.1","_shasum":"f8cdfc100a8e5c090b5c3660b91b5116ce8718c1","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"f8cdfc100a8e5c090b5c3660b91b5116ce8718c1","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-4.0.1.tgz","integrity":"sha512-nZr7sg3bFTVi70qVbMOLu02a2GwCghNkazGmrwBHDbHgFLlWuMwGUTJKUFnlJ+0QTiCxhBQqBmkPQr6BDksAJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHy13LI7YiCt/I2ZcQVeDGG/VxnVh0zxSx9PHRvEms/bAiBKg7ji0YANx7axpIC6pmRud4OOC8EooU9MI1/8w4aU6w=="}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs-4.0.1.tgz_1498225246716_0.5305874936748296"},"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"4.0.2":{"name":"resin-image-fs","version":"4.0.2","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","ext2fs":"^0.0.12","fatfs":"^0.10.6","file-disk":"^1.0.1","lodash":"^3.10.0","partitioninfo":"^2.0.1","replacestream":"^4.0.0"},"gitHead":"95a1a910f9b2d35c4eefcca8f34a3e0e30b6d45c","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@4.0.2","_shasum":"e238c4c14f26b24059b8d539476aa411bf9bcaa6","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"e238c4c14f26b24059b8d539476aa411bf9bcaa6","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-4.0.2.tgz","integrity":"sha512-42JvzjdoSkSZ9K8DGapP/G2p7woWJwoyHUAbJK+htG/+8FtXbq57B3bk/GvaKqjFxTy9+LsrwaVw+M2WguL3kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCl2LiDq2uTqvRWOm1Kwc4LYa11JwnfSGLoTefeUQjBCQIhAJM51OXU3dYxBXo3RPYsNEvb66YBx+3J2Orgi2baTxlt"}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs-4.0.2.tgz_1508323784549_0.6113050302956253"},"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"4.1.0":{"name":"resin-image-fs","version":"4.1.0","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^2.9.32","ext2fs":"^0.1.0","fatfs":"^0.10.6","file-disk":"^1.0.1","lodash":"^3.10.0","partitioninfo":"^3.0.0","replacestream":"^4.0.0"},"gitHead":"c05a34650149ccae41ae58c7105e56cde0a4eac2","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@4.1.0","_shasum":"3059e6f58435cd854b38f649acc75332bffb3b9b","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.12.0","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"3059e6f58435cd854b38f649acc75332bffb3b9b","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-4.1.0.tgz","integrity":"sha512-Ej72dBNRJYdKYPWqbB0Jb4zfIR/CPpCMQuCGCBuaBFWmQ13/axkV5laaSqO8kvItcsHSFA0zuwyRjJ0YNpJOlw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkB3O34Kj4oGwLGyRDUNcTV4mOTktqHVEoIRAEXvVO5AIhAIxI3fqYUB2lXRRTZEkK2sE0/VdVYyb/jtvsusq/ObsF"}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs-4.1.0.tgz_1511288971577_0.4722339133732021"},"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"4.1.1":{"name":"resin-image-fs","version":"4.1.1","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^0.1.0","fatfs":"^0.10.6","file-disk":"^1.0.1","lodash":"^3.10.0","partitioninfo":"^3.0.0","replacestream":"^4.0.0"},"gitHead":"7b83269aca8aab3ae601699953afd074bca129bc","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@4.1.1","_shasum":"32da35993f2b07fcf07b5ffc124b43289b5c08b3","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.12.2","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"32da35993f2b07fcf07b5ffc124b43289b5c08b3","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-4.1.1.tgz","integrity":"sha512-Gngh8nVAdwdX5Xs9AVeFpzjmLI2zMqxBPlK8yY2kxnauUbP05VN+HMLj9PdkYK31s21Ql8yydKZWYwIFaPREfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHbw5Hb8lKH8P3r8ucyF6vhfiDrx1mjXBxQ0MtHcwUZpAiEAzT/rg76595JUotXZv+ipp64X8Fug2CXcI0Y2Kk8h+LM="}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs-4.1.1.tgz_1513001410567_0.8643676827196032"},"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"4.1.2":{"name":"resin-image-fs","version":"4.1.2","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"test":"gulp test && coffee tests/e2e.coffee","prepublish":"gulp build","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"~1.8.0","fs-extra":"^0.22.1","gulp":"~3.8.10","gulp-coffee":"~2.2.0","gulp-coffeelint":"~0.4.0","gulp-mocha":"~2.0.0","gulp-util":"~3.0.1","jsdoc-to-markdown":"^1.1.1","mocha":"~2.0.1","mochainon":"^1.0.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^0.1.0","fatfs":"^0.10.6","file-disk":"^1.0.1","lodash":"^3.10.0","partitioninfo":"^3.0.0","replacestream":"^4.0.0"},"gitHead":"048b0f63fe31a5c3a04a45442eb14f4a2c767cea","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@4.1.2","_shasum":"76e4d0e469fb948be861de7b005f5616515a4cb7","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.12.3","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"76e4d0e469fb948be861de7b005f5616515a4cb7","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-4.1.2.tgz","integrity":"sha512-0P+uX3gZ9Ba8qn78H/uXGAyxs9kxkdKRaLfved2hWbBlB1OYRoctppeO2oHi4jCIL31QL0ARtHs+cPGfu0jNzg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8fnyDeQq88/T1Z8Q6VSo3jrAJuJC9u2zyrZqmI6/tqAiEA2qkN6rQ7l9qg/rm4PuD9AMjqwdWWT7GwNTVqnG3QEUg="}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs-4.1.2.tgz_1516889005279_0.4651342388242483"},"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"5.0.0":{"name":"resin-image-fs","version":"5.0.0","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"files":["build/*.js","CHANGELOG.md","README.md","LICENSE"],"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^1.1.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.3","fatfs":"^0.10.6","file-disk":"^4.1.1","lodash":"^4.17.5","partitioninfo":"^4.0.0","replacestream":"^4.0.0"},"gitHead":"231248e3f142220db16f12af494d6999ef627f3a","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.0","_shasum":"2cf3e6cb97d92137c882b8fdf3e594645341e459","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.13.1","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"2cf3e6cb97d92137c882b8fdf3e594645341e459","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.0.tgz","fileCount":7,"unpackedSize":40158,"integrity":"sha512-OUaW7fv29iFA8iuNydFF24J5xge+BK2m+l4v7HcUnaVBPbuCbDezKbEnFSjtLnnCKPWDL14QXqbhpyKZr9go/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb4G5JzP/KPzSxx7znCQxyNUEhfaz5tQieipWATra90wIgHVpWXJiDSRRvpRhsd+sdwMxlb5PVEb0ZZejFPhzgyv8="}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.0_1522440944180_0.6381836320771486"},"_hasShrinkwrap":false,"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"5.0.1":{"name":"resin-image-fs","version":"5.0.1","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"files":["build/*.js","CHANGELOG.md","README.md","LICENSE"],"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^1.1.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.4","fatfs":"^0.10.6","file-disk":"^4.1.1","lodash":"^4.17.5","partitioninfo":"^4.0.0","replacestream":"^4.0.0"},"gitHead":"b273e345d33568832b8c0138b3b324a1f401d90e","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.1","_shasum":"c22911c014e5cb63e52d72a8f900c18601851325","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.14.1","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"c22911c014e5cb63e52d72a8f900c18601851325","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.1.tgz","fileCount":7,"unpackedSize":40230,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa4FvXCRA9TVsSAnZWagAAcWEP/AmFVcgxco0oc03xkKzx\nVn+ca6nZxFSETQWf3VQshEKaGyZ8t4CTGMZun2rS4giXnUi7UvsYjrDc/Kxd\nT6mKmKAb0+N5Z74vIZd9JiXAw1hKYUUMPuT2Mif68ajQEtiejbHF42jlq9Xl\nm62PNRR/pSSeIWYtyyxYlLaFJi7E++8LpKXU5Hd/9kyMeLNJuPLUwxkV13ds\nU0MlnrgfbZFfbvkV77hr8LoTyclak4boN/mjORf4+ZyoOa/yIHh18N/J1zZW\nCGtSgSvtEDYhfYHoBRkZxtW2bAOThOCb7E0EmaLZuIYGb7GgfwOj7uto8tgB\n0cQWDr1DWjdb0WxsvA82AWeAu0Oi7/Al9EC8hdn14ZzUkwRyX9J1h5Sy0HMR\nPMsPWZevjpku8WxoavyCAMW1fcPn+G8wi3F/lpkKKKMyPxGYh3Eqd4T7MPPf\nQehg+raukUK5EXUBISQaxAGxay0sBJ3u6TFkvyDzA0Raozu95bWzjVBH8C5e\nRezw2w84eMddvsY4+wonTnL8sdqWtcbRl5RbZQEsCRC7X4NvZ6KB8aIWHlNh\nVkPM0nKejXk1/j5i9KT4Wn/FIhW7eKwIjWQbZyh7yK52VCxhyrtUc9VMh+hJ\nMTKzTC9Dwfe+ZUNhfEwWDUW/OD9rQqMi5rdL2s49R+NcahAGZJspY3gMBbff\nzbYK\r\n=HOzY\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-MhegNTFJmC+jc8nOopDzPc7itdZQEuFXLhd3sIvkhew6zaCA2v1EwaoXq+Gi2/cuQuii+spDrVyGuRSQRGswXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3THlrAFnpHV7pizMdeOrlIt6IFB/h0Tqr0AJNiGf3mAIgVWBtzjRFcgA529Au3L+b1j3ujKxTrkj9vbtRJgqnza8="}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.1_1524653014657_0.3415349429140546"},"_hasShrinkwrap":false,"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"5.0.2":{"name":"resin-image-fs","version":"5.0.2","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"files":["build/*.js","CHANGELOG.md","README.md","LICENSE"],"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^1.1.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.4","fatfs":"^0.10.6","file-disk":"^4.1.1","lodash":"^4.17.5","partitioninfo":"^4.0.0","replacestream":"^4.0.0"},"gitHead":"15f14f0b64716962c1c5c742cab2f9edc6c90af2","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.2","_shasum":"7e8f8e64bb347f8b16b57cbfccaacdf19662ec69","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.14.1","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"7e8f8e64bb347f8b16b57cbfccaacdf19662ec69","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.2.tgz","fileCount":7,"unpackedSize":40069,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa4IknCRA9TVsSAnZWagAAu+AP/0jj+LbZF6eK8RtsOoib\n7nFqV08tg2d2OpUnbdjU841wNmnHJ7CouFB34ZoXk1ZPxKBW0Up/bgafNQDK\nXk6FaznKrccjcO1Bd3/HRi4C/P1o9iKD0IQEgjznFYSLwgdyYZ1Bxqi2IlAe\nLsVN8Kt3c4QfRj+2AMNwPsJ6Qv3kycz//M4QEVTQKVkq+pjjCg3pcM2Jrk7L\n0eyOFAZJ5U3uUMLTCycEBvnSYMk5C2KPMSEfkTiqzj+XvuZFtWhndwAze+6E\nVLCy2AcFmXGH8b2oJ+t5rww47WIrhJtZBu8y5zZRf2QR+yOwF+dOYHiAWRsF\n1dPaOx1TLZQpxk/YLXot4/1Cshg1OtJnD5LK12R53bdAbjvhf4vFmfgTzXCO\nKBSENLoEWCfz/o0X2xN5SfD3BmdbA7c9/ahyl2aLE9hbOmAdpAUsgU6hu5fa\nXuxnlQb6TP/QsTFDTc0MTPTSN65/VkSO1W8fJmpNmgsyKk6ycysH7X/jAY1k\nYohxG5+KZnVlvte8q1r1qD0KYoMG2ozxZz2T8XvdxyRUb63Fz0eIBp97WAJr\nFAF39RK1V5MPHPB0edtpy/o+HiCDeLaDWETtGcR/hn090Ttxht76tbD5VkX+\nLswVj9kxsi6B43ps8X5nEb9xp0RcC9rstqOB0RXS0io3w31Ckch4MWC/+xjj\n6YIq\r\n=egkx\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-eMN74mRB+6NRVrNgOT2aMGTdWVCiH7TeXBiOwXcD2lj7m2T8XpYUji/ARRZAcGanUE0eAdNNexvkOqnjXcZHfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDbKJpRRx4yHSw/EDyjmnSl+XA020+PHoiWFjjktG749AiBl1VgFv/oNUNd91qXs2ViDB4k8h9RDiPi0aQ3/7MZ7uA=="}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.2_1524664613876_0.2530091386645863"},"_hasShrinkwrap":false,"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"5.0.3":{"name":"resin-image-fs","version":"5.0.3","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"files":["build/*.js","CHANGELOG.md","README.md","LICENSE"],"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^1.1.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.4","fatfs":"^0.10.6","file-disk":"^4.1.1","lodash":"^4.17.5","partitioninfo":"^4.0.0","replacestream":"^4.0.0"},"gitHead":"737a14d524feb381859cf6207f9e158f2ee37e25","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.3","_shasum":"6b9a64a623251b9dd4b0c6cb100bc69bbf4716fe","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.14.1","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"6b9a64a623251b9dd4b0c6cb100bc69bbf4716fe","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.3.tgz","fileCount":7,"unpackedSize":40156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa5tYcCRA9TVsSAnZWagAAZ8YQAKRHxE85OklDPvVq/MBY\nDX1Ld6GSeRM64BFpUlerioTIhjqqbzBG2T43ZZwIS9IJ6tT5+1CeZDBt0X4b\nTjuSD8geO0lDQKDe8BZBRXqcaGtqPegkcjDH6OtUJJj+p1sZPllsruwrPBFN\noHu8idSjoI6jltzGggCsXi1SA+2qapWyJpw6vTwWHqfi4kM4XcAVFwepE+Ut\nJe2bFjlOmNRkZ50r0wn6fZHzEqG5G5N0OOxsAef+DkwAI+G9e+dFUNQdlMff\nLWKnhtNHPexcfhh7oWOaT4PFjklgBffBEDK7GNgG/7NrqFy86kxHCe2qQmog\nHiTcuVR4lb3PBOfS64MqWmLsCFF0Hklh0q54lnYpkz2Xf/z06tO5KET/8QHG\nMEjYyN6FKDZrJ9f43R9xJY1+BQTnTSQOD2ZbFwMAdbkjV6CXDMEO+eS3mBQG\n55HNJEHhj2YC3Z5l3xhbMVEQ5YdH3sYmd/itVjwyv+iFoxL6ey7c6l3v8uD9\nVXcSoAQ+hNAU7ChVnllO6V3LhWficul8nKFbfgsUceYngJEW1MrcU1oBdoOV\njWFrrE3mnwhXUkSYglf60hJP+vISmnfAw8/XGZx6Ln5J+X9HeWF6HozMp/XV\nObRptrF4zXlnvZwMDj2cFZEiKTUDWxlNmjJQnR3YCFAB7pUwmMviGlhfVpC0\n6Ono\r\n=2toM\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-lHDfUyLzJofsNAYAu/uVK00Ll95Ps2ZcIl3FCJcSs0mTKZ7MVULHc15eJbwn1QvjT5rp4BkLRn1i3wX4sgFO9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFb4P/SpBXh9rvsxmoN11VkcpY9SZGpX2z0krzOxEKHuAiAlnRc07YAezyFvgu1j2IO5xc5Mu6ez60N6EvhpMy91rQ=="}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.3_1525077531452_0.6360930736747061"},"_hasShrinkwrap":false,"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"5.0.4":{"name":"resin-image-fs","version":"5.0.4","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"files":["build/*.js","CHANGELOG.md","README.md","LICENSE"],"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^1.1.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.4","fatfs":"^0.10.6","file-disk":"^4.1.1","lodash":"^4.17.5","partitioninfo":"^4.0.0","replacestream":"^4.0.0"},"gitHead":"49687b7a1c154109f803f7acaf639d24b8118719","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.4","_shasum":"33637ac97102953ab74e101b750a2c59ec331dac","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.14.1","_npmUser":{"name":"resin.io","email":"accounts@resin.io"},"dist":{"shasum":"33637ac97102953ab74e101b750a2c59ec331dac","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.4.tgz","fileCount":7,"unpackedSize":39966,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6EvTCRA9TVsSAnZWagAAmK8P/AiC01s2QiHDS+exUQ/U\nFSqiyPYMpA2amDWASwhxME2kf069lqkeuBMT1/UhD7tFXX+OPdEaGKDSZwTA\niq88r3Nre0Ws+3WhrtXeR/YF0SLnMJYbAZoBK6TDGMCxnA+We1Q1U1ZsB9sQ\n2UrSSH7GTpMGSdhLz8ld85ZzPUPNSrs0sjFTqfq49NOO/dfpaV8QLFp4oJfw\nMojnx2TieuGses7Rn9pSmBjt3HUnOjA2egn0NQSJ4clGxfzWGUTWFoyua8L4\nb4l2acviFHKNJCLTAlUk1t8XWEjAJEX/e3lFNUXvrnXNl/S3zLSQMxjX4nqh\n8IxzZ0yz1p3oZkK8T5RU+kbrePOP6u120zFEBkaHMjNXckEHwq90Fsvdj5Nd\nOu2hqp1s1jZ3p0czykJ8c3HTVxMjMUDx6G9UZ4SLmY75+nZ4XB95CYk57BfT\nzAyTYwFrvLH3K7TcmBdD/soHdctIo0ZNWPC2Kr5Prz6DxtCnyl3LbfkPOm+f\nh7xbPzlhRScRQX+LzzQfJDzsy0Wmtj6nUGbAHxsISHslmcCCyGgWvSAtNpoE\nWY9HFQNdtL3LjwvtzSDwNnpI4aIXUZfWQgbn562KFsNmkfltDJhcUv5NNZE7\nG5Tgu5Pb0G6ZOzCH6wQYAIpxeym7H4nZ4fJP2DBFDdgYCaIOYxgCpF32ughH\nrkBJ\r\n=gosR\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-qOIBwV3e7IuT05TzKkyj4U7ivlDYGwRwAvyDCy6O+jE35UJd8dyo8+uGjeQuX1gvonrUPuSHgg8zA5FfWV2ISg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUIgwfcawBzRxcRso0pGLmEDYzOFvgzQlb/JoJmQL40wIhAPTy/rAS3YYZ60HzvjuByKjC6vSMV5Un8XsNTeUbeMWI"}]},"maintainers":[{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.4_1525173201514_0.09448431928352297"},"_hasShrinkwrap":false,"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"5.0.5-update-file-disk-8c10bb2cd91ca967531d693450e87c1684dfaeef":{"name":"resin-image-fs","version":"5.0.5-update-file-disk-8c10bb2cd91ca967531d693450e87c1684dfaeef","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^1.1.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.23","fatfs":"^0.10.6","file-disk":"^5.0.0","lodash":"^4.17.5","partitioninfo":"^4.0.3","replacestream":"^4.0.0"},"readme":"resin-image-fs\n--------------\n\n[![npm version](https://badge.fury.io/js/resin-image-fs.svg)](http://badge.fury.io/js/resin-image-fs)\n[![dependencies](https://david-dm.org/resin-io/resin-image-fs.png)](https://david-dm.org/resin-io/resin-image-fs.png)\n[![Build Status](https://travis-ci.org/resin-io/resin-image-fs.svg?branch=master)](https://travis-ci.org/resin-io/resin-image-fs)\n[![Build status](https://ci.appveyor.com/api/projects/status/86bot1jaepcg5xlv?svg=true)](https://ci.appveyor.com/project/resin-io/resin-image-fs)\n\nJoin our online chat at [![Gitter chat](https://badges.gitter.im/resin-io/chat.png)](https://gitter.im/resin-io/chat)\n\nResin.io image filesystem manipulation utilities.\n\nRole\n----\n\nThe intention of this module is to provide low level utilities to Resin.io operating system data partitions.\n\n**THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY**.\n\nInstallation\n------------\n\nInstall `resin-image-fs` by running:\n\n```sh\n$ npm install --save resin-image-fs\n```\n\nDocumentation\n-------------\n\n\n* [imagefs](#module_imagefs)\n    * [.interact(disk, partition)](#module_imagefs.interact) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n    * [.read(definition)](#module_imagefs.read) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n    * [.write(definition, stream)](#module_imagefs.write) ⇒ <code>Promise</code>\n    * [.readFile(definition)](#module_imagefs.readFile) ⇒ <code>Promise.&lt;String&gt;</code>\n    * [.writeFile(definition, contents)](#module_imagefs.writeFile) ⇒ <code>Promise</code>\n    * [.copy(input, output)](#module_imagefs.copy) ⇒ <code>Promise</code>\n    * [.replace(definition, search, replace)](#module_imagefs.replace) ⇒ <code>Promise</code>\n    * [.listDirectory(definition)](#module_imagefs.listDirectory) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n\n<a name=\"module_imagefs.interact\"></a>\n\n### imagefs.interact(disk, partition) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Get a bluebird.disposer of a node fs like interface for a partition  \n**Returns**: <code>bluebird.disposer.&lt;fs&gt;</code> - node fs like interface  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| disk | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| partition | <code>Number</code> | partition number |\n\n**Example**  \n```js\nPromise.using imagefs.interact('/foo/bar.img', 5), (fs) ->\n  fs.readFileAsync('/bar/qux')\n  .then (contents) ->\n    console.log(contents)\n```\n<a name=\"module_imagefs.read\"></a>\n\n### imagefs.read(definition) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Get a device file readable stream  \n**Returns**: <code>bluebird.disposer.&lt;ReadStream&gt;</code> - file stream  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\ndisposer = imagefs.read\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n\nPromise.using disposer, (stream) ->\n  out = fs.createWriteStream('/bar/qux')\n  stream.pipe(out)\n  utils.waitStream(out)\n```\n<a name=\"module_imagefs.write\"></a>\n\n### imagefs.write(definition, stream) ⇒ <code>Promise</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Write a stream to a device file  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| stream | <code>ReadStream</code> | contents stream |\n\n**Example**  \n```js\nimagefs.write\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, fs.createReadStream('/baz/qux')\n```\n<a name=\"module_imagefs.readFile\"></a>\n\n### imagefs.readFile(definition) ⇒ <code>Promise.&lt;String&gt;</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Read a device file  \n**Returns**: <code>Promise.&lt;String&gt;</code> - file text  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.readFile\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n.then (contents) ->\n\tconsole.log(contents)\n```\n<a name=\"module_imagefs.writeFile\"></a>\n\n### imagefs.writeFile(definition, contents) ⇒ <code>Promise</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Write a device file  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| contents | <code>String</code> | contents string |\n\n**Example**  \n```js\nimagefs.writeFile\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'foo bar baz'\n```\n<a name=\"module_imagefs.copy\"></a>\n\n### imagefs.copy(input, output) ⇒ <code>Promise</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Copy a device file  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| input | <code>Object</code> | input device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [input.partition] | <code>Number</code> | partition number |\n| input.path | <code>String</code> | file path |\n| output | <code>Object</code> | output device path definition |\n| output.image | <code>String</code> | path to the image |\n| [output.partition] | <code>Number</code> | partition number |\n| output.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.copy\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n,\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/hello'\n```\n<a name=\"module_imagefs.replace\"></a>\n\n### imagefs.replace(definition, search, replace) ⇒ <code>Promise</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Perform search and replacement in a file  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| search | <code>String</code> &#124; <code>RegExp</code> | search term |\n| replace | <code>String</code> | replace value |\n\n**Example**  \n```js\nimagefs.replace\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'bar', 'baz'\n```\n<a name=\"module_imagefs.listDirectory\"></a>\n\n### imagefs.listDirectory(definition) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: List the contents of a directory  \n**Returns**: <code>Promise.&lt;Array.&lt;String&gt;&gt;</code> - list of files in directory  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | directory path |\n\n**Example**  \n```js\nimagefs.listDirectory\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/my/directory'\n.then (files) ->\n\tconsole.log(files)\n```\n\nSupport\n-------\n\nIf you're having any problem, please [raise an issue](https://github.com/resin-io/resin-image-fs/issues/new) on GitHub and the Resin.io team will be happy to help.\n\nTests\n-----\n\nRun the test suite by doing:\n\n```sh\n$ npm test\n```\n\nContribute\n----------\n\n- Issue Tracker: [github.com/resin-io/resin-image-fs/issues](https://github.com/resin-io/resin-image-fs/issues)\n- Source Code: [github.com/resin-io/resin-image-fs](https://github.com/resin-io/resin-image-fs)\n\nBefore submitting a PR, please make sure that you include tests, and that [coffeelint](http://www.coffeelint.org/) runs without any warning:\n\n```sh\n$ npm test\n```\n\nLicense\n-------\n\nThe project is licensed under the Apache 2.0 license.\n","readmeFilename":"README.md","gitHead":"8c10bb2cd91ca967531d693450e87c1684dfaeef","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.5-update-file-disk-8c10bb2cd91ca967531d693450e87c1684dfaeef","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"dist":{"integrity":"sha512-kU5swKqSyCTxAphAg/JhAb7t5FXkZCbdLSuEKrnV/sx7DZIpaZTntPF/ltODyjud15fpSO5bFn3w4/LHs6wbVA==","shasum":"b5c13c4dcdec0413fa934a599ca9ea3b3be8d1d8","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.5-update-file-disk-8c10bb2cd91ca967531d693450e87c1684dfaeef.tgz","fileCount":7,"unpackedSize":40099,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcACBBCRA9TVsSAnZWagAA9TsQAKC+XFKZqfOsgwNGPmJg\nLwK7AeAL9HS/peOkRqPdJ50FpsVR1MJkiZfqBcjmu5cFdsTH4am++q/VA0ti\nCvWN/61DNlTmGKHVnCie67O0T0ZTY+seyRY8bNLlFg7luS8FhXn+ia2XhhWG\nmcp03gxE6vsxdfEZmMrS6bdSrQkFEx8kpGzm2FGjNJedbkXFHrlckaFEqjup\nwDb1OJhPgqbIdr6DnfmGLQB2S6xXqVDfDLm2gsuxDX9QVV7Qiw/lHh6YuXYR\nmZJCUbxlIcSg3VXEwbbhC8FPuvvJ50pNMrtRQhZjg0jfS/A9Q0EQlx8NIVGN\ndt2AAHPP5e+UjmSM94yExKTadHkUr75BzCZO5GlUebzmXuwrK2sXcSReGmMR\nQ4vS9mqWtWq/VzaWXEfHUdhq45b6E2V4sTXmqUpAqnCiFEnlt36fRMBvXPD2\nQES6aSIUg+UAPAw2EelGABOJOy5He9FcMrBmz8Bq0X9Ljkme3EcBUP9cBu35\ns4023399WOKlOoA2gO0+v8Aul0pLT4d86h37AWSOBnD5YA6+OrzqIxw2TcYv\ntWrfHCDJ0KaGdJjY2Cati2T78RA+MI+xXfvrBJSAT+Wisr405+aiedwYhi4E\ncLSwM+Lqi86KHNYrgRzBL09jHk1L7eigTYsw0NlsCHOkfDcrA9g96FXXkpn2\nMahN\r\n=5Oyg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAnnKm85FjAC1c1zYfikMvYVp0km6lDrAnwdmSPjfxW2AiAx+NgjkNFic5gqBPMxwQC+gMkdAGjeWUYUMaOo0HBEkg=="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"},{"email":"accounts+npm-ci@resin.io","name":"resin-ci"},{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.5-update-file-disk-8c10bb2cd91ca967531d693450e87c1684dfaeef_1543512128667_0.8050283165582384"},"_hasShrinkwrap":false},"5.0.5":{"name":"resin-image-fs","version":"5.0.5","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^1.1.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.23","fatfs":"^0.10.6","file-disk":"^5.0.0","lodash":"^4.17.5","partitioninfo":"^4.0.3","replacestream":"^4.0.0"},"gitHead":"b3effa874f03aff1fbeb559154e617ca46323ac0","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.5","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"dist":{"integrity":"sha512-PhW30h7+PQ0YduGdPWab06WburIeO9NaMDVXylKvj2VArDOI/P6mcZv2Vf8fCiwsUqA1ensyLAu6ZAif8twgTA==","shasum":"c8db9b9cbe33bc5679a9342fd5bb5e276b52771b","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.5.tgz","fileCount":7,"unpackedSize":40041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcACEzCRA9TVsSAnZWagAA7oUP/R5LsRbI/otfI1mTYvrK\nPCM9tJDczsXGGPD2uzrW47sFcbvLSvgXoq9QgVpAxzk4QCC6JTZXVLxqe3s1\n3OE33I+cvqqng+cOPUgA9fbuszFzpEs8frX+PD/xPGMzuiV/wRD9pAW17ric\nmBJo5qXcjWpsx7KJ4iJBqWZ0bCu7bhOAAib1ten0JOBe23cDciYd9TSJxj5b\nPVZHUBcVJzVyPH/aYYaGN1Md0PXoTcYQb+hu2px++32NTNCrwVPAmx1ojTL3\neGancjhkxPsVmzkBjsXkFqFNkyEG6RRNsTVWl+N+nlnG2yslsUYBA5iw3Y8H\nbO3/rGd05qXQDmZU9A38B2+cMeICSWKe1VinTLXtLqA66anYepc28+UvKRXI\nYB1c/oS5tnjYlAeYAtJhxaWQmGeoDUnb5zYpc7PAuOOGB9AA3DEVtkcZ+pxR\ng/TyWG4p5LchfLkF08zHGgB3PVeL4cGczddqWUxGparxX7gOBPxs26si/+28\njjkvx47iUXudRzz4SDEBuhWrQwNdp5NDteJvHZPX0hPBGf8qengmHTsFWG00\nXjhYdP6U2ZKgKGrFdvFrticDBhAupJLGpH1C7Gf7SZEGll7XLwlkZyBbL6E8\nTGSgHis94EdIQLkOJdRlfz1L6aCHjSAcIoRPyzxVcJ3D44EX3iQCTd6FFxXS\nhICQ\r\n=qxw+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC53c+lz26rHURWrMrX45uphKQLWHc/q1l6aEScWBY+lwIhAMSf+FQnmm2l8IGASeCj8+h8u0824xQKBdHNiv1f3f/P"}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"},{"email":"accounts+npm-ci@resin.io","name":"resin-ci"},{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.5_1543512370392_0.8594801137136534"},"_hasShrinkwrap":false,"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"5.0.6-update-partitioninfo-95d7c631d1341164839649af6459a78afff72d12":{"name":"resin-image-fs","version":"5.0.6-update-partitioninfo-95d7c631d1341164839649af6459a78afff72d12","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^1.1.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.23","fatfs":"^0.10.6","file-disk":"^5.0.0","lodash":"^4.17.5","partitioninfo":"^5.2.0","replacestream":"^4.0.0"},"readme":"resin-image-fs\n--------------\n\n[![npm version](https://badge.fury.io/js/resin-image-fs.svg)](http://badge.fury.io/js/resin-image-fs)\n[![dependencies](https://david-dm.org/resin-io/resin-image-fs.png)](https://david-dm.org/resin-io/resin-image-fs.png)\n[![Build Status](https://travis-ci.org/resin-io/resin-image-fs.svg?branch=master)](https://travis-ci.org/resin-io/resin-image-fs)\n[![Build status](https://ci.appveyor.com/api/projects/status/86bot1jaepcg5xlv?svg=true)](https://ci.appveyor.com/project/resin-io/resin-image-fs)\n\nJoin our online chat at [![Gitter chat](https://badges.gitter.im/resin-io/chat.png)](https://gitter.im/resin-io/chat)\n\nResin.io image filesystem manipulation utilities.\n\nRole\n----\n\nThe intention of this module is to provide low level utilities to Resin.io operating system data partitions.\n\n**THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY**.\n\nInstallation\n------------\n\nInstall `resin-image-fs` by running:\n\n```sh\n$ npm install --save resin-image-fs\n```\n\nDocumentation\n-------------\n\n\n* [imagefs](#module_imagefs)\n    * [.interact(disk, partition)](#module_imagefs.interact) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n    * [.read(definition)](#module_imagefs.read) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n    * [.write(definition, stream)](#module_imagefs.write) ⇒ <code>Promise</code>\n    * [.readFile(definition)](#module_imagefs.readFile) ⇒ <code>Promise.&lt;String&gt;</code>\n    * [.writeFile(definition, contents)](#module_imagefs.writeFile) ⇒ <code>Promise</code>\n    * [.copy(input, output)](#module_imagefs.copy) ⇒ <code>Promise</code>\n    * [.replace(definition, search, replace)](#module_imagefs.replace) ⇒ <code>Promise</code>\n    * [.listDirectory(definition)](#module_imagefs.listDirectory) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n\n<a name=\"module_imagefs.interact\"></a>\n\n### imagefs.interact(disk, partition) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Get a bluebird.disposer of a node fs like interface for a partition  \n**Returns**: <code>bluebird.disposer.&lt;fs&gt;</code> - node fs like interface  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| disk | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| partition | <code>Number</code> | partition number |\n\n**Example**  \n```js\nPromise.using imagefs.interact('/foo/bar.img', 5), (fs) ->\n  fs.readFileAsync('/bar/qux')\n  .then (contents) ->\n    console.log(contents)\n```\n<a name=\"module_imagefs.read\"></a>\n\n### imagefs.read(definition) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Get a device file readable stream  \n**Returns**: <code>bluebird.disposer.&lt;ReadStream&gt;</code> - file stream  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\ndisposer = imagefs.read\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n\nPromise.using disposer, (stream) ->\n  out = fs.createWriteStream('/bar/qux')\n  stream.pipe(out)\n  utils.waitStream(out)\n```\n<a name=\"module_imagefs.write\"></a>\n\n### imagefs.write(definition, stream) ⇒ <code>Promise</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Write a stream to a device file  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| stream | <code>ReadStream</code> | contents stream |\n\n**Example**  \n```js\nimagefs.write\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, fs.createReadStream('/baz/qux')\n```\n<a name=\"module_imagefs.readFile\"></a>\n\n### imagefs.readFile(definition) ⇒ <code>Promise.&lt;String&gt;</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Read a device file  \n**Returns**: <code>Promise.&lt;String&gt;</code> - file text  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.readFile\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n.then (contents) ->\n\tconsole.log(contents)\n```\n<a name=\"module_imagefs.writeFile\"></a>\n\n### imagefs.writeFile(definition, contents) ⇒ <code>Promise</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Write a device file  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| contents | <code>String</code> | contents string |\n\n**Example**  \n```js\nimagefs.writeFile\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'foo bar baz'\n```\n<a name=\"module_imagefs.copy\"></a>\n\n### imagefs.copy(input, output) ⇒ <code>Promise</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Copy a device file  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| input | <code>Object</code> | input device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [input.partition] | <code>Number</code> | partition number |\n| input.path | <code>String</code> | file path |\n| output | <code>Object</code> | output device path definition |\n| output.image | <code>String</code> | path to the image |\n| [output.partition] | <code>Number</code> | partition number |\n| output.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.copy\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n,\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/hello'\n```\n<a name=\"module_imagefs.replace\"></a>\n\n### imagefs.replace(definition, search, replace) ⇒ <code>Promise</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: Perform search and replacement in a file  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| search | <code>String</code> &#124; <code>RegExp</code> | search term |\n| replace | <code>String</code> | replace value |\n\n**Example**  \n```js\nimagefs.replace\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'bar', 'baz'\n```\n<a name=\"module_imagefs.listDirectory\"></a>\n\n### imagefs.listDirectory(definition) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n**Kind**: static method of <code>[imagefs](#module_imagefs)</code>  \n**Summary**: List the contents of a directory  \n**Returns**: <code>Promise.&lt;Array.&lt;String&gt;&gt;</code> - list of files in directory  \n**Access:** public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> &#124; <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | directory path |\n\n**Example**  \n```js\nimagefs.listDirectory\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/my/directory'\n.then (files) ->\n\tconsole.log(files)\n```\n\nSupport\n-------\n\nIf you're having any problem, please [raise an issue](https://github.com/resin-io/resin-image-fs/issues/new) on GitHub and the Resin.io team will be happy to help.\n\nTests\n-----\n\nRun the test suite by doing:\n\n```sh\n$ npm test\n```\n\nContribute\n----------\n\n- Issue Tracker: [github.com/resin-io/resin-image-fs/issues](https://github.com/resin-io/resin-image-fs/issues)\n- Source Code: [github.com/resin-io/resin-image-fs](https://github.com/resin-io/resin-image-fs)\n\nBefore submitting a PR, please make sure that you include tests, and that [coffeelint](http://www.coffeelint.org/) runs without any warning:\n\n```sh\n$ npm test\n```\n\nLicense\n-------\n\nThe project is licensed under the Apache 2.0 license.\n","readmeFilename":"README.md","gitHead":"95d7c631d1341164839649af6459a78afff72d12","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.6-update-partitioninfo-95d7c631d1341164839649af6459a78afff72d12","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"dist":{"integrity":"sha512-u38QhNjaLM8stMSq8WrKjdKIxKyAZptZWpnl4Tior6xQz0uxVektN2f/XPJnj0A3j2Nr2i+f/DzuM67dTIXk7A==","shasum":"13cc5fa59a5479d850f3f60b39d08b188ccbf7ae","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.6-update-partitioninfo-95d7c631d1341164839649af6459a78afff72d12.tgz","fileCount":7,"unpackedSize":40182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPMdeCRA9TVsSAnZWagAALp4P/3OpimpN2vVsznM6IJT5\ng9h2EIWQGDhvA77H9+nl7CiUwUffL28703ZvvoIqKyP1BAcfZLx4VmyBzmXo\nlEYXen9xyt5apXiSEoVrFeoWg9VeLvHaghy6Kt5EX+JJWMyCtOIW7WbkqNxV\n1Mb9+7pDNOcrvkKYan85Q0SDVWAWRxqUKvkfah19efQwjOjJU/aSoL11ouOP\niQHUtWSJ2gh6e6w4UYSqZwq1Ir57x/M/eMwbfJIwZwMNQNM9QZDBKNAp0k8j\nIzODtZ/qEml8Za3IqC+Q695ibO23mncnmg7I8OXZ3q87ahPX06Y7gr43J9UQ\n2VoJJAbKCVav2wDJGiT+OMhUZwjsiswJEKxfkMTiyORfMfaKcu82IoALubg4\n3gbKOOYsjE2BQcC3hdjAJVtivYdzrTXNlBbfK+DiuzJsVhDanAYCCU+duyen\noFlI/RxjakE86WHZxUOZpsKNPHqqbtt+QMBgkvDIJk6cd7Q0QP4icP+EHTnx\nfiVefIo378pWNIf1ADVvmrnYgLgMkIBGM3i2wki5Ef8/LU+x7hiFX2KJwAIX\nSWK4JvbkZ9uC+gUJAmDxuqXfUSxtmlrGhVo3VmYeFhtq1f9eh9AxZGhniQ4J\n5rQEmeQsKi6yjYt2eb4LgMTPp9WyakFBbPTjCB7bcbTWsoxrfEH6gjgKnaux\n2vsA\r\n=SpUE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFWvmnOcEQSt6PQe8An9yCo+zBfI3goeh5CVDoUk9I5DAiAdI7rqVZnJ0gCiUzPbV/+OY6cgd1KJYIzLJ1SLE3+k1g=="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"},{"email":"accounts+npm-ci@resin.io","name":"resin-ci"},{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.6-update-partitioninfo-95d7c631d1341164839649af6459a78afff72d12_1547487069368_0.01554004400294362"},"_hasShrinkwrap":false},"5.0.6":{"name":"resin-image-fs","version":"5.0.6","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^1.1.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.23","fatfs":"^0.10.6","file-disk":"^5.0.0","lodash":"^4.17.5","partitioninfo":"^5.2.0","replacestream":"^4.0.0"},"gitHead":"b67d7f5f2c99023b5e01f12839b1332a3c7ec651","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.6","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"dist":{"integrity":"sha512-HSk4yxxxqqI8ofJs9IA/n5aGQFvKbOw+9SPxuPF/acWUPy/UKm2Ke4Xd0CFTggjD3BEiqsBQ/qmyKP0ORcyaiQ==","shasum":"ea2ee766f3f8dc73b377a1c8ef40c5405aa66d9d","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.6.tgz","fileCount":7,"unpackedSize":40120,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPMiUCRA9TVsSAnZWagAAv18P/RNsrBCdL0PT0AmHnh0K\nOFwYgX1mNqyJoX5m5rWa3McEVrGpgGh9G/fNVy4Ao0hI1sMVmjQfSWMk+RjY\nuey24E5HRPS2jrCQ/M1/uBJBrKG5fynqXQJaVBnvpCEsFSerwV+wx8y0iZP4\nuAmhSpgc4wCXIQldCgKu986l5Tpe9VNxC2ozMKCpI+5J89dxxcZMM4hxPYgt\nY3xi2jnp/eubfeB/uZ0pAtvcacc/qodBbJYLE/AuLi5pFzTju+2oTN9WN0Kc\nR4RtGTZPHPRZThgNIgxeosSlodW+wxaa0R6mcqw7jq00oykpc+cNbKRXVCW8\niilN9jQpfYgkxr2Xb4ugFVRHa0Vjgz/eeVdrw6+fICPhQ4Gge1tZiDsqxNkB\n1fvowldbwO70mvieBeGNPW4c5Wv3Bj3F5Te9h0cDSpLKQMR0qjlTMjWuX/Vv\n0UlHLGXP1sUqP+Da4eJzOH94fC6wdXUeLiklXoUbn8wcRnDOdqcWrzdoKeOj\ngvcxbDVwui4wvCTR7GFu9d59jqPBarkEoPlPXo61LXQ//twYkbJO1ffnGpzo\nZgBD3S25FW76uZZDTchr6zS+pht3aR2sIdP1OTK1U5+Y0vTn/u4QHae2TkqI\n81mK+hc/6aP0PelDli01T6i/nbYEbXw+9q68rpLiOJyLqE+WzlwEtwuuvLfT\nKzmz\r\n=rilg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDrvyuqtk5yx8ywih/apKZXFBpUVpNLfmxbNsZaxXwVwIhANq/uFJT4avVQS5QVQMtHK8FlW/eSSgdED2eUmpJGunK"}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"},{"email":"accounts+npm-ci@resin.io","name":"resin-ci"},{"email":"accounts@resin.io","name":"resin.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.6_1547487379926_0.2189017018130739"},"_hasShrinkwrap":false,"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"5.0.7-update-file-disk-6-679af85a3ee01916413fc931899f6e83703ff0fa":{"name":"resin-image-fs","version":"5.0.7-update-file-disk-6-679af85a3ee01916413fc931899f6e83703ff0fa","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^4.0.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.23","fatfs":"^0.10.6","file-disk":"^6.0.0","lodash":"^4.17.5","partitioninfo":"^5.2.0","replacestream":"^4.0.0"},"readme":"resin-image-fs\n--------------\n\n[![npm version](https://badge.fury.io/js/resin-image-fs.svg)](http://badge.fury.io/js/resin-image-fs)\n[![dependencies](https://david-dm.org/resin-io/resin-image-fs.png)](https://david-dm.org/resin-io/resin-image-fs.png)\n[![Build Status](https://travis-ci.org/resin-io/resin-image-fs.svg?branch=master)](https://travis-ci.org/resin-io/resin-image-fs)\n[![Build status](https://ci.appveyor.com/api/projects/status/86bot1jaepcg5xlv?svg=true)](https://ci.appveyor.com/project/resin-io/resin-image-fs)\n\nJoin our online chat at [![Gitter chat](https://badges.gitter.im/resin-io/chat.png)](https://gitter.im/resin-io/chat)\n\nResin.io image filesystem manipulation utilities.\n\nRole\n----\n\nThe intention of this module is to provide low level utilities to Resin.io operating system data partitions.\n\n**THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY**.\n\nInstallation\n------------\n\nInstall `resin-image-fs` by running:\n\n```sh\n$ npm install --save resin-image-fs\n```\n\nDocumentation\n-------------\n\n\n* [imagefs](#module_imagefs)\n    * [.interact(disk, partition)](#module_imagefs.interact) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n    * [.read(definition)](#module_imagefs.read) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n    * [.write(definition, stream)](#module_imagefs.write) ⇒ <code>Promise</code>\n    * [.readFile(definition)](#module_imagefs.readFile) ⇒ <code>Promise.&lt;String&gt;</code>\n    * [.writeFile(definition, contents)](#module_imagefs.writeFile) ⇒ <code>Promise</code>\n    * [.copy(input, output)](#module_imagefs.copy) ⇒ <code>Promise</code>\n    * [.replace(definition, search, replace)](#module_imagefs.replace) ⇒ <code>Promise</code>\n    * [.listDirectory(definition)](#module_imagefs.listDirectory) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n\n<a name=\"module_imagefs.interact\"></a>\n\n### imagefs.interact(disk, partition) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Get a bluebird.disposer of a node fs like interface for a partition  \n**Returns**: <code>bluebird.disposer.&lt;fs&gt;</code> - node fs like interface  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| disk | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| partition | <code>Number</code> | partition number |\n\n**Example**  \n```js\nPromise.using imagefs.interact('/foo/bar.img', 5), (fs) ->\n  fs.readFileAsync('/bar/qux')\n  .then (contents) ->\n    console.log(contents)\n```\n<a name=\"module_imagefs.read\"></a>\n\n### imagefs.read(definition) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Get a device file readable stream  \n**Returns**: <code>bluebird.disposer.&lt;ReadStream&gt;</code> - file stream  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\ndisposer = imagefs.read\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n\nPromise.using disposer, (stream) ->\n  out = fs.createWriteStream('/bar/qux')\n  stream.pipe(out)\n  utils.waitStream(out)\n```\n<a name=\"module_imagefs.write\"></a>\n\n### imagefs.write(definition, stream) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Write a stream to a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| stream | <code>ReadStream</code> | contents stream |\n\n**Example**  \n```js\nimagefs.write\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, fs.createReadStream('/baz/qux')\n```\n<a name=\"module_imagefs.readFile\"></a>\n\n### imagefs.readFile(definition) ⇒ <code>Promise.&lt;String&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Read a device file  \n**Returns**: <code>Promise.&lt;String&gt;</code> - file text  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.readFile\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n.then (contents) ->\n\tconsole.log(contents)\n```\n<a name=\"module_imagefs.writeFile\"></a>\n\n### imagefs.writeFile(definition, contents) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Write a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| contents | <code>String</code> | contents string |\n\n**Example**  \n```js\nimagefs.writeFile\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'foo bar baz'\n```\n<a name=\"module_imagefs.copy\"></a>\n\n### imagefs.copy(input, output) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Copy a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| input | <code>Object</code> | input device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [input.partition] | <code>Number</code> | partition number |\n| input.path | <code>String</code> | file path |\n| output | <code>Object</code> | output device path definition |\n| output.image | <code>String</code> | path to the image |\n| [output.partition] | <code>Number</code> | partition number |\n| output.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.copy\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n,\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/hello'\n```\n<a name=\"module_imagefs.replace\"></a>\n\n### imagefs.replace(definition, search, replace) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Perform search and replacement in a file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| search | <code>String</code> \\| <code>RegExp</code> | search term |\n| replace | <code>String</code> | replace value |\n\n**Example**  \n```js\nimagefs.replace\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'bar', 'baz'\n```\n<a name=\"module_imagefs.listDirectory\"></a>\n\n### imagefs.listDirectory(definition) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: List the contents of a directory  \n**Returns**: <code>Promise.&lt;Array.&lt;String&gt;&gt;</code> - list of files in directory  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | directory path |\n\n**Example**  \n```js\nimagefs.listDirectory\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/my/directory'\n.then (files) ->\n\tconsole.log(files)\n```\n\nSupport\n-------\n\nIf you're having any problem, please [raise an issue](https://github.com/resin-io/resin-image-fs/issues/new) on GitHub and the Resin.io team will be happy to help.\n\nTests\n-----\n\nRun the test suite by doing:\n\n```sh\n$ npm test\n```\n\nContribute\n----------\n\n- Issue Tracker: [github.com/resin-io/resin-image-fs/issues](https://github.com/resin-io/resin-image-fs/issues)\n- Source Code: [github.com/resin-io/resin-image-fs](https://github.com/resin-io/resin-image-fs)\n\nBefore submitting a PR, please make sure that you include tests, and that [coffeelint](http://www.coffeelint.org/) runs without any warning:\n\n```sh\n$ npm test\n```\n\nLicense\n-------\n\nThe project is licensed under the Apache 2.0 license.\n","readmeFilename":"README.md","gitHead":"679af85a3ee01916413fc931899f6e83703ff0fa","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.7-update-file-disk-6-679af85a3ee01916413fc931899f6e83703ff0fa","_nodeVersion":"10.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Hvu72uI27fjPCheoT/NSwXf4VOlqdxCCZBtiRTtdw0s5FdFUAFpXjT1FM7IpD7pM42kzexwMcstYq+d8o85fsw==","shasum":"d97deb5072ee7619e1ebe6d8e1f69b7bf6ac83cb","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.7-update-file-disk-6-679af85a3ee01916413fc931899f6e83703ff0fa.tgz","fileCount":7,"unpackedSize":40268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpitICRA9TVsSAnZWagAAi5UP/3iCP0ehY5pUnLDqM58H\nZeduU2nOrVUYVadGBdQg/mv6T2p/ZNFFff7/Jtr/9SXS2/z2XYot1s1RPckq\nDZ07AKsZDMhfoH59Rm2IbCvAl5Jlk0pdkw90hbcz7qGfGVRmOM9+tA6zvAPQ\nBLGb3EyeiRWSsO2P3g79S9+Gp84pZ7fUktfzQSxbd3WFIw9Wtw3jCnP7YDE1\nsmmPNfgCckWxaMMtSpMd6thYCaFV4NJHXEQZsieMz8di8B9MvJgkNaCvwewV\nCdFhYItscyBF5GdEaakvPwy9DDA8BikVE1Dfe3ug5faMNJvBTj8CgvGZUWZ8\nIr5qDxykufKVs/jnW1YqGjOaux3dpClt3AJzdItc9lZRky8qQmnO3jYmZiRJ\nVNdLvaKRxwvetIfHPA/DyPpRpUEbLOYWf80TMEAC09brwUg5r8s8WEXu5dac\nprYKjuwZLLGuPBtNiKeOKUaKDUGMEwAwsV2n2Nx2hlEqlwDbu01OYwyzL48h\nAQuQNESMcYnPKpE6DijMjUsD4zo7FDV91gScDPUuXiN9Agxe9EDYFQW1Hw5T\nmZ5fICxsLaITbWmuzhIur8y93pUlX4Sq3Rfl9XMZiZstsZ5zdY6Pz+tAk6cF\nhGTiN7tkbgNFeCVICpzwA1/jGxAgoIJ0yriey1NUgw53I79Fk8EkZAAXB9yk\nGayn\r\n=s1DY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQAMCTv0EfZ1rwV/WCeGOhoVKK4cGuIJBo1PwikTq+rQIgLmALkLLyx3rG9WCEOEDmX9xHHSi/ZAu59Qf5Fovxprw="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"},{"email":"accounts+npm-ci@resin.io","name":"resin-ci"},{"email":"accounts@resin.io","name":"resin.io"}],"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.7-update-file-disk-6-679af85a3ee01916413fc931899f6e83703ff0fa_1554393927747_0.4339793597101005"},"_hasShrinkwrap":false},"5.0.7":{"name":"resin-image-fs","version":"5.0.7","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^4.0.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.23","fatfs":"^0.10.6","file-disk":"^6.0.0","lodash":"^4.17.5","partitioninfo":"^5.2.0","replacestream":"^4.0.0"},"gitHead":"3691b82d3e76ac167699b66e576648c0e48bd605","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.7","_nodeVersion":"10.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-VznWD2aoEvQI68DXm9XOZSCumDvAbCzkOBUOsjWf3N5h3AnM7xjQp5LHlDyYTXr4ngDeadC+nMtihjqltIzHIg==","shasum":"94cf3eaf087978347cd2cfc9e851b6f37204ec8a","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.7.tgz","fileCount":7,"unpackedSize":40208,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp2EJCRA9TVsSAnZWagAAunkQAKDdnpCtnWKgSr46OHd4\n+Io502i5bEcB8aGh4/2HT6lcRqPZDwZMYhHwuaZjTCH/xO5nZ+YvrjkYXHb0\nK0KMjEjw7IPtSck0xho1FcmVNIvE9o3hXt5vIqqwFZAis03r2MmQfxaJ4sAq\n+s33eIiXxKbAq94wVfJwBa/N8mFLVNoJa/YaMLJjzfGaPcApWjgWnBkVDKoH\na9+588pjA9BjSLwEFULLoOsTYWCewLOzYYwTaGHlqS25DB2wedUjyFv7qA/r\noNhxwdLKMOzHKqem1vpB/WeGIztre61BgPAoV0CBVLkiTXyAo9oRZY/4EK3B\nJXomdOCZocRnq1zyV7eQ+PXgdNZwx9IkKZcQl0l6ObQ8fFnIpWTyBJrvYX/P\nBrBHZ+iDzji9aN6xSC4T3U0GaueSfZ6V/vjIVnxIW0QTIgFL6zcHGHnDxA9z\ndnhX+QPCg3a8fnXdImbGrxJXqnSkCWRVX8qiXdO+VUOQsrRx0HCC+NEZJ9xJ\nNKi7Rwc2fpYNvVeX4jllW/eEsVhl94Pmj+96jpv6WlKesY3hNt5HOZt/g/we\n4AhRO+ca+ebq4I9uvVDeJyVJ8JqsvjzLMp27KuBlSDNNQL671QBzk+JLGltC\n9xRQ5Vw4MQVGAm54ozF5NHLFtnscRnV+6UqHsIeolVMDs3wAHKA56IwlHBAC\nzbp2\r\n=vRuw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICCe1tusilXTXC9T5er+FDms9v3m36TZ0sg6MynrDqfSAiB7rspmnvnsAYKsLvG2o+y+K6xTc7Osj1M6KroS6Kbjaw=="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"},{"email":"accounts+npm-ci@resin.io","name":"resin-ci"},{"email":"accounts@resin.io","name":"resin.io"}],"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.7_1554473225135_0.5225182650878506"},"_hasShrinkwrap":false,"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"5.0.8-node12-41aa655ef43b10863877ec3fb2e0c40f0810df9a":{"name":"resin-image-fs","version":"5.0.8-node12-41aa655ef43b10863877ec3fb2e0c40f0810df9a","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^4.0.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.28","fatfs":"^0.10.6","file-disk":"^6.0.0","lodash":"^4.17.5","partitioninfo":"^5.2.0","replacestream":"^4.0.0"},"readme":"resin-image-fs\n--------------\n\n[![npm version](https://badge.fury.io/js/resin-image-fs.svg)](http://badge.fury.io/js/resin-image-fs)\n[![dependencies](https://david-dm.org/resin-io/resin-image-fs.png)](https://david-dm.org/resin-io/resin-image-fs.png)\n[![Build Status](https://travis-ci.org/resin-io/resin-image-fs.svg?branch=master)](https://travis-ci.org/resin-io/resin-image-fs)\n[![Build status](https://ci.appveyor.com/api/projects/status/86bot1jaepcg5xlv?svg=true)](https://ci.appveyor.com/project/resin-io/resin-image-fs)\n\nJoin our online chat at [![Gitter chat](https://badges.gitter.im/resin-io/chat.png)](https://gitter.im/resin-io/chat)\n\nResin.io image filesystem manipulation utilities.\n\nRole\n----\n\nThe intention of this module is to provide low level utilities to Resin.io operating system data partitions.\n\n**THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY**.\n\nInstallation\n------------\n\nInstall `resin-image-fs` by running:\n\n```sh\n$ npm install --save resin-image-fs\n```\n\nDocumentation\n-------------\n\n\n* [imagefs](#module_imagefs)\n    * [.interact(disk, partition)](#module_imagefs.interact) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n    * [.read(definition)](#module_imagefs.read) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n    * [.write(definition, stream)](#module_imagefs.write) ⇒ <code>Promise</code>\n    * [.readFile(definition)](#module_imagefs.readFile) ⇒ <code>Promise.&lt;String&gt;</code>\n    * [.writeFile(definition, contents)](#module_imagefs.writeFile) ⇒ <code>Promise</code>\n    * [.copy(input, output)](#module_imagefs.copy) ⇒ <code>Promise</code>\n    * [.replace(definition, search, replace)](#module_imagefs.replace) ⇒ <code>Promise</code>\n    * [.listDirectory(definition)](#module_imagefs.listDirectory) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n\n<a name=\"module_imagefs.interact\"></a>\n\n### imagefs.interact(disk, partition) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Get a bluebird.disposer of a node fs like interface for a partition  \n**Returns**: <code>bluebird.disposer.&lt;fs&gt;</code> - node fs like interface  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| disk | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| partition | <code>Number</code> | partition number |\n\n**Example**  \n```js\nPromise.using imagefs.interact('/foo/bar.img', 5), (fs) ->\n  fs.readFileAsync('/bar/qux')\n  .then (contents) ->\n    console.log(contents)\n```\n<a name=\"module_imagefs.read\"></a>\n\n### imagefs.read(definition) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Get a device file readable stream  \n**Returns**: <code>bluebird.disposer.&lt;ReadStream&gt;</code> - file stream  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\ndisposer = imagefs.read\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n\nPromise.using disposer, (stream) ->\n  out = fs.createWriteStream('/bar/qux')\n  stream.pipe(out)\n  utils.waitStream(out)\n```\n<a name=\"module_imagefs.write\"></a>\n\n### imagefs.write(definition, stream) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Write a stream to a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| stream | <code>ReadStream</code> | contents stream |\n\n**Example**  \n```js\nimagefs.write\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, fs.createReadStream('/baz/qux')\n```\n<a name=\"module_imagefs.readFile\"></a>\n\n### imagefs.readFile(definition) ⇒ <code>Promise.&lt;String&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Read a device file  \n**Returns**: <code>Promise.&lt;String&gt;</code> - file text  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.readFile\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n.then (contents) ->\n\tconsole.log(contents)\n```\n<a name=\"module_imagefs.writeFile\"></a>\n\n### imagefs.writeFile(definition, contents) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Write a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| contents | <code>String</code> | contents string |\n\n**Example**  \n```js\nimagefs.writeFile\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'foo bar baz'\n```\n<a name=\"module_imagefs.copy\"></a>\n\n### imagefs.copy(input, output) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Copy a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| input | <code>Object</code> | input device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [input.partition] | <code>Number</code> | partition number |\n| input.path | <code>String</code> | file path |\n| output | <code>Object</code> | output device path definition |\n| output.image | <code>String</code> | path to the image |\n| [output.partition] | <code>Number</code> | partition number |\n| output.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.copy\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n,\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/hello'\n```\n<a name=\"module_imagefs.replace\"></a>\n\n### imagefs.replace(definition, search, replace) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Perform search and replacement in a file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| search | <code>String</code> \\| <code>RegExp</code> | search term |\n| replace | <code>String</code> | replace value |\n\n**Example**  \n```js\nimagefs.replace\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'bar', 'baz'\n```\n<a name=\"module_imagefs.listDirectory\"></a>\n\n### imagefs.listDirectory(definition) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: List the contents of a directory  \n**Returns**: <code>Promise.&lt;Array.&lt;String&gt;&gt;</code> - list of files in directory  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | directory path |\n\n**Example**  \n```js\nimagefs.listDirectory\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/my/directory'\n.then (files) ->\n\tconsole.log(files)\n```\n\nSupport\n-------\n\nIf you're having any problem, please [raise an issue](https://github.com/resin-io/resin-image-fs/issues/new) on GitHub and the Resin.io team will be happy to help.\n\nTests\n-----\n\nRun the test suite by doing:\n\n```sh\n$ npm test\n```\n\nContribute\n----------\n\n- Issue Tracker: [github.com/resin-io/resin-image-fs/issues](https://github.com/resin-io/resin-image-fs/issues)\n- Source Code: [github.com/resin-io/resin-image-fs](https://github.com/resin-io/resin-image-fs)\n\nBefore submitting a PR, please make sure that you include tests, and that [coffeelint](http://www.coffeelint.org/) runs without any warning:\n\n```sh\n$ npm test\n```\n\nLicense\n-------\n\nThe project is licensed under the Apache 2.0 license.\n","readmeFilename":"README.md","gitHead":"41aa655ef43b10863877ec3fb2e0c40f0810df9a","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.8-node12-41aa655ef43b10863877ec3fb2e0c40f0810df9a","_nodeVersion":"10.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-vMQqiImwQZAvIBR9d7e8kusgBfLoXal/wDRuvDMqUNgFCiu1F8sptdIjwEadCmQqzpQx6IY95uYOvE6fyIxQIw==","shasum":"ad58cc499fe276904201a674ac3abb42e4ec2d19","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.8-node12-41aa655ef43b10863877ec3fb2e0c40f0810df9a.tgz","fileCount":7,"unpackedSize":40369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcz/49CRA9TVsSAnZWagAAgLoP/A4SwOlR2zejYUYN85jA\noIVk9dxQ4q31EGtTPJ1QoXlptPVX1ivOkiMjqBgjgQgtYEkF2XgcGcZuMFYY\npdWFOZTMn9paauC4s6jS6TDp5NB+/aKDBfkUU1PTdOhuCmT1hr79ZXM2d5vt\nbizI3me6yTIrLse6BANqdVgLDD1fOQJk9IHx3/KjWKND/3WY804KzpL8kq1R\nvRI3TRxz4024bwgRsrKL1JSACUFd8jcTfS4q7xWCA7Ggl6n7BbbUm0nOBvCy\n2eSzyBsA9YdgUKEmX4ARJ1FL8S5T3MUddEP1Ts4U3rlX4YIHfM6G4KvOpC6U\nm49A9kcai768FsFxX+qMCCe8Kg6mbni029GXusIQMnAMlKTGC4KrirVXCrwW\nxjfYHaZH9Pu4yyxNgfyjV85EIK6z7rgZtfQAwDjv50uWkw8JTmQmXov0iqhX\nBbXTHRpOymxBXd5KNNsrtBpGH0OxT33abG5p2TtMVh1WqrsAiR/bfOkuJHuj\nc02d/pFoQyHHonl4eZRsitguvA5qQ7cb61PL2fwcRr2UNvkCWRzMJnYA8dln\nTVXzqFHoYdLjUFfigu7EEUOgiCKr/s6LJsiHC+2sHSJd3qki8YUEet2rcYip\nVy2Qjk5VUC+1HSOwXuFEHEud4k6U7Z7vs4LJP0XYeK4gAlk83iYupGy+C5Hh\nIV8a\r\n=DTi+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBirgbIJYE0eVTMy0465KttFkexUM3dv0dyVEymUrLl3AiAIgFQbCH7SqSNaebEpaAdcBhatFtVmpwwnH+Xc3zR4Cw=="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"}],"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.8-node12-41aa655ef43b10863877ec3fb2e0c40f0810df9a_1557134909061_0.8409082991842649"},"_hasShrinkwrap":false},"5.0.8":{"name":"resin-image-fs","version":"5.0.8","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^1.1.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^4.0.1","resin-lint":"^1.5.0","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.28","fatfs":"^0.10.6","file-disk":"^6.0.0","lodash":"^4.17.5","partitioninfo":"^5.2.0","replacestream":"^4.0.0"},"gitHead":"8072a367e9e1a6e0a268599ff8048de741e05f06","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.8","_nodeVersion":"10.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-m3DPKAdErmgxMkOhGP9NOyqZor0DADkuDKb38XSjlhxj5lJMEtLi7AuZauyl4ysINc4u+ljMDW9IqGNpXhFcXw==","shasum":"9431256a8f03fb653095254194fb124b6a6458ad","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.8.tgz","fileCount":7,"unpackedSize":40321,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0ADnCRA9TVsSAnZWagAAleMP/jXYzERlUrfrnSqUa759\nf5vb/Hg0LTfuX+pc8GKmidbpRFyEuBsinL+d0Ny/zcMtw/yAjU8jXqVA7uGQ\nGkhEq1nNiVSdMDdyS2ADHnzQyqEmw1oaiPTpuRmcoR92ga/pz4TOms0XPbVP\nMH3S0DXGEE9i3IIEjJ9Ys3P2yW8/uS27TMKWQ8/efyE47f4bohlaWFP9soRq\n5SPHaLbPXSTFLPN6WytpvhWrgfO1n3orNc+1G/CtPkIpSQAtCKRE/zqbDj0T\nk1XqNu/jj37F0YHixHhvyaQ3nSBQyHizQrtG5lLTG2RC0m81JWfbp32D0jJM\n21br8ftTvs7N14hpo7IqrtX68xZsA/4bZYP5lE9GfmaiDGS51R9OLiqHNFqW\nd9uJx8RWT60QWzZbgS+5K6VWEtkb4xA6ugWZCniAeBaE0DBLSP4Vb2qrgw07\nKGUlb/JehJgGOP8/H6otbjr9l0rsLKSA3IqWhrB68V01yMPJ4h6lTY7/+B9s\nr6o2ZJac4p29BM8PiIrZ205qVvOg9XvlGPNot7vYfjdQa1meQ16zArZf7Ujz\nOd4KmEt+tyidQxzKVrvn6PmgLCJuhx1jgJqyoj3hyMv3XA37j5iG4G73s219\ntPjAqCWMrTNJ0ueyHaRxT55LSgHAM5HT5jHfd664xv8OalX6yR/jcbkVmsQ4\ndyfL\r\n=GZzq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFQBQSgqUQidc1JS1emhCl3a5di73kQmUyLb0ySPoHOgIhAMQ3qFDr/wRDSsUNBNvI1yfnOrSqTtGIFU3BBQ3R4F4g"}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"}],"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.8_1557135591476_0.9083871313474994"},"_hasShrinkwrap":false,"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"5.0.9-update-dev-deps-c84f474d1b27709539d4f2db2606e29221d83e40":{"name":"resin-image-fs","version":"5.0.9-update-dev-deps-c84f474d1b27709539d4f2db2606e29221d83e40","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^3.0.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^5.0.3","resin-lint":"^3.3.1","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.28","fatfs":"^0.10.6","file-disk":"^6.0.0","lodash":"^4.17.5","partitioninfo":"^5.2.0","replacestream":"^4.0.0"},"readme":"resin-image-fs\n--------------\n\n[![npm version](https://badge.fury.io/js/resin-image-fs.svg)](http://badge.fury.io/js/resin-image-fs)\n[![dependencies](https://david-dm.org/resin-io/resin-image-fs.png)](https://david-dm.org/resin-io/resin-image-fs.png)\n[![Build Status](https://travis-ci.org/resin-io/resin-image-fs.svg?branch=master)](https://travis-ci.org/resin-io/resin-image-fs)\n[![Build status](https://ci.appveyor.com/api/projects/status/86bot1jaepcg5xlv?svg=true)](https://ci.appveyor.com/project/resin-io/resin-image-fs)\n\nJoin our online chat at [![Gitter chat](https://badges.gitter.im/resin-io/chat.png)](https://gitter.im/resin-io/chat)\n\nResin.io image filesystem manipulation utilities.\n\nRole\n----\n\nThe intention of this module is to provide low level utilities to Resin.io operating system data partitions.\n\n**THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY**.\n\nInstallation\n------------\n\nInstall `resin-image-fs` by running:\n\n```sh\n$ npm install --save resin-image-fs\n```\n\nDocumentation\n-------------\n\n\n* [imagefs](#module_imagefs)\n    * [.interact(disk, partition)](#module_imagefs.interact) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n    * [.read(definition)](#module_imagefs.read) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n    * [.write(definition, stream)](#module_imagefs.write) ⇒ <code>Promise</code>\n    * [.readFile(definition)](#module_imagefs.readFile) ⇒ <code>Promise.&lt;String&gt;</code>\n    * [.writeFile(definition, contents)](#module_imagefs.writeFile) ⇒ <code>Promise</code>\n    * [.copy(input, output)](#module_imagefs.copy) ⇒ <code>Promise</code>\n    * [.replace(definition, search, replace)](#module_imagefs.replace) ⇒ <code>Promise</code>\n    * [.listDirectory(definition)](#module_imagefs.listDirectory) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n\n<a name=\"module_imagefs.interact\"></a>\n\n### imagefs.interact(disk, partition) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Get a bluebird.disposer of a node fs like interface for a partition  \n**Returns**: <code>bluebird.disposer.&lt;fs&gt;</code> - node fs like interface  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| disk | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| partition | <code>Number</code> | partition number |\n\n**Example**  \n```js\nPromise.using imagefs.interact('/foo/bar.img', 5), (fs) ->\n  fs.readFileAsync('/bar/qux')\n  .then (contents) ->\n    console.log(contents)\n```\n<a name=\"module_imagefs.read\"></a>\n\n### imagefs.read(definition) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Get a device file readable stream  \n**Returns**: <code>bluebird.disposer.&lt;ReadStream&gt;</code> - file stream  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\ndisposer = imagefs.read\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n\nPromise.using disposer, (stream) ->\n  out = fs.createWriteStream('/bar/qux')\n  stream.pipe(out)\n  utils.waitStream(out)\n```\n<a name=\"module_imagefs.write\"></a>\n\n### imagefs.write(definition, stream) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Write a stream to a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| stream | <code>ReadStream</code> | contents stream |\n\n**Example**  \n```js\nimagefs.write\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, fs.createReadStream('/baz/qux')\n```\n<a name=\"module_imagefs.readFile\"></a>\n\n### imagefs.readFile(definition) ⇒ <code>Promise.&lt;String&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Read a device file  \n**Returns**: <code>Promise.&lt;String&gt;</code> - file text  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.readFile\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n.then (contents) ->\n\tconsole.log(contents)\n```\n<a name=\"module_imagefs.writeFile\"></a>\n\n### imagefs.writeFile(definition, contents) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Write a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| contents | <code>String</code> | contents string |\n\n**Example**  \n```js\nimagefs.writeFile\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'foo bar baz'\n```\n<a name=\"module_imagefs.copy\"></a>\n\n### imagefs.copy(input, output) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Copy a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| input | <code>Object</code> | input device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [input.partition] | <code>Number</code> | partition number |\n| input.path | <code>String</code> | file path |\n| output | <code>Object</code> | output device path definition |\n| output.image | <code>String</code> | path to the image |\n| [output.partition] | <code>Number</code> | partition number |\n| output.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.copy\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n,\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/hello'\n```\n<a name=\"module_imagefs.replace\"></a>\n\n### imagefs.replace(definition, search, replace) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Perform search and replacement in a file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| search | <code>String</code> \\| <code>RegExp</code> | search term |\n| replace | <code>String</code> | replace value |\n\n**Example**  \n```js\nimagefs.replace\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'bar', 'baz'\n```\n<a name=\"module_imagefs.listDirectory\"></a>\n\n### imagefs.listDirectory(definition) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: List the contents of a directory  \n**Returns**: <code>Promise.&lt;Array.&lt;String&gt;&gt;</code> - list of files in directory  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | directory path |\n\n**Example**  \n```js\nimagefs.listDirectory\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/my/directory'\n.then (files) ->\n\tconsole.log(files)\n```\n\nSupport\n-------\n\nIf you're having any problem, please [raise an issue](https://github.com/resin-io/resin-image-fs/issues/new) on GitHub and the Resin.io team will be happy to help.\n\nTests\n-----\n\nRun the test suite by doing:\n\n```sh\n$ npm test\n```\n\nContribute\n----------\n\n- Issue Tracker: [github.com/resin-io/resin-image-fs/issues](https://github.com/resin-io/resin-image-fs/issues)\n- Source Code: [github.com/resin-io/resin-image-fs](https://github.com/resin-io/resin-image-fs)\n\nBefore submitting a PR, please make sure that you include tests, and that [coffeelint](http://www.coffeelint.org/) runs without any warning:\n\n```sh\n$ npm test\n```\n\nLicense\n-------\n\nThe project is licensed under the Apache 2.0 license.\n","readmeFilename":"README.md","gitHead":"c84f474d1b27709539d4f2db2606e29221d83e40","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.9-update-dev-deps-c84f474d1b27709539d4f2db2606e29221d83e40","_nodeVersion":"10.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-BPzUOR4PVCBWIE7byHD+JFgUlQvN7vK2Mj+KLjot1lkuse9yYXrnqgw/8fEHAEcIrUaNJMoJ4/QXSrnPCC8QvQ==","shasum":"b678d8cbbe78136e5b40df6ac098625e4690163f","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.9-update-dev-deps-c84f474d1b27709539d4f2db2606e29221d83e40.tgz","fileCount":7,"unpackedSize":40444,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXT2ACRA9TVsSAnZWagAAEAAP/R5US9GLGJZy+4+GzCNP\nrSVZnFlOji3fl892mOT+PhOnI7veA8chgbdoQgEcKVo890CuTTTIukb+mSN3\ncBLY/Mz/GCvybSzl+iPbuwNCdFTdpRzIhz13suHWMmJKQ5ngMKy8ixHNQXpj\niWm4hIy4Kc3i9UcMZzDz4GVS4Tsjr8+YYALQLj4MuIOxL6wP5EiXe39hQriu\np8UmijW0AjtI+81kpBAXAtEF7BXRpx+gLbWRuaWeovF7tmqv/+ZMoBjfh+7u\nixTIlT9ns/POJGu13k/DReEe4RlLRNnblU8kUtSXxhu3DwhBwg/q68unSSsb\nPwetBerpUh3CtTjsjBiF+zIVTaLlGyxdZWNTwxbeP07T+wA4Nxhb6ohkVTP0\n8EH47D7bw/BjSu7rLYhnwBGo/UGP7g7VnUtEpAFiYbMcty+cRIBy5mBodwkZ\nC7IwErTcxHsnjtsEDiy2XhR6G7igqYWgLy8PDF/y227Ugkbi0LJ5/yUkOvTX\nXUuLk6KJt/e+fKRqpJAiNWdq4Q/FnFrkteUZpmHZZSwji1NfY4tuoo/EQ2q+\nNcphbSoRNg5Ehs+6a1artVCc59Pwt/VEhHB1usbXTiece5iFy5/2pjfaYSy7\nVAEg9op4cbjhwTPPi9TS0WOwb+Qwaggjls0QmXxSKCPLrjEMDjiWvA2b/zdH\n71RL\r\n=bnni\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/wVeC08VRTPyPw8ucvkQNFlf657+kq+mYUYiZyTMP0QIgaaLhQQxM2rdKtSLXQJWdNlkSU37GYZNzYsu2L03esRc="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"}],"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.9-update-dev-deps-c84f474d1b27709539d4f2db2606e29221d83e40_1583168895490_0.42205811975819696"},"_hasShrinkwrap":false},"5.0.9":{"name":"resin-image-fs","version":"5.0.9","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^3.0.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^5.0.3","resin-lint":"^3.3.1","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.28","fatfs":"^0.10.6","file-disk":"^6.0.0","lodash":"^4.17.5","partitioninfo":"^5.2.0","replacestream":"^4.0.0"},"gitHead":"98f2ca6734d0639929b95e099ccbf8ab7f925686","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@5.0.9","_nodeVersion":"10.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-fBCJjF6GeqRveum3cJCBf9E0AtIA7qtVccXU6bmoyEEixA0AxWDqp/nJ5+PjIL26/bpaX95vo7Mscyr8Q1UNfQ==","shasum":"f7dcd24e515074af02b6311bdcc295c0e585bf15","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-5.0.9.tgz","fileCount":7,"unpackedSize":40387,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXUZ8CRA9TVsSAnZWagAAiPcP/ii3iGPIM9vzKznXOmzh\nk4cqfsB2j9o8i/TP5HuvTeAe15/7LxK976z1FlVxMcNgw2wRDZHZd97J3zV1\n6UUVbOJ3pBjdW+RS6gP/WscLxvMzuw8ckt7LtcL3zn4r2UK2RiDP4OtlO6/H\n0gLGixJIqxzGXKqprgp8BNKGukFj2nT1aj7rVbC7yExBm/Yg76tUKpKIYwmv\nWL5zgtsoJHXCYDEaG6M9m1KFnuijxEA8o0Im0/6JydZnilaT+XwJS+c08VYF\njFr7a/I8T+Q1+gSqcwZsP2PHnmlSs3pV2hZ/cHlIMPX31ufrCghdkVyBSadC\nSxLDnb2S+AFnGMUkGbAJKbDaOnUb1u2vDA+3gxJ1yQuGfjRsOPeU0+6tVy53\nDIdLInkknVfkuEtrBE+s9c2Q1nb10wctXDl1r4hOnmW2f5c8jMx7fC1HVTFK\nltV9u8kJVBvOox0/jm6+j+sImsav3ZrYRccfZOMmVvJkc6BM84BftaBsxpb4\nv5k32wJ4HQQc6JK4OAH08ckJkvskXIye5/WDDSIuGU6F3xu+nZiAZ/l4l/XW\nzG/v3r5VjHhdcndNeLEbo8TXIuYjXk9IGRiXFQmDLayYQaFZxw9R48J/Ajye\nLejve8iThKyna6pZ8FINTTg117Wx6Io6efEbz8g2os/+MD2n0dlV3kEjvvmL\n6+FO\r\n=MZ5m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClQQavogp2vsAIRsHyeE/Lqolb7eH1hfyAbDgz/BnHUgIgBfk5Z//Nyz34scRPsCB4WgSkqqEqnBF9ZQUzoWk7yrI="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"}],"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_5.0.9_1583171196012_0.11851491309677553"},"_hasShrinkwrap":false,"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"},"6.0.0-update-file-disk-2-2596a1c286adb8ecb78b113ff2b17be09b0f0945":{"name":"resin-image-fs","version":"6.0.0-update-file-disk-2-2596a1c286adb8ecb78b113ff2b17be09b0f0945","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^3.0.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^5.0.3","resin-lint":"^3.3.1","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.28","fatfs":"^0.10.6","file-disk":"^7.0.1","lodash":"^4.17.5","partitioninfo":"^6.0.0","replacestream":"^4.0.0"},"readme":"resin-image-fs\n--------------\n\n[![npm version](https://badge.fury.io/js/resin-image-fs.svg)](http://badge.fury.io/js/resin-image-fs)\n[![dependencies](https://david-dm.org/resin-io/resin-image-fs.png)](https://david-dm.org/resin-io/resin-image-fs.png)\n[![Build Status](https://travis-ci.org/resin-io/resin-image-fs.svg?branch=master)](https://travis-ci.org/resin-io/resin-image-fs)\n[![Build status](https://ci.appveyor.com/api/projects/status/86bot1jaepcg5xlv?svg=true)](https://ci.appveyor.com/project/resin-io/resin-image-fs)\n\nJoin our online chat at [![Gitter chat](https://badges.gitter.im/resin-io/chat.png)](https://gitter.im/resin-io/chat)\n\nResin.io image filesystem manipulation utilities.\n\nRole\n----\n\nThe intention of this module is to provide low level utilities to Resin.io operating system data partitions.\n\n**THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY**.\n\nInstallation\n------------\n\nInstall `resin-image-fs` by running:\n\n```sh\n$ npm install --save resin-image-fs\n```\n\nDocumentation\n-------------\n\n\n* [imagefs](#module_imagefs)\n    * [.interact(disk, partition)](#module_imagefs.interact) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n    * [.read(definition)](#module_imagefs.read) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n    * [.write(definition, stream)](#module_imagefs.write) ⇒ <code>Promise</code>\n    * [.readFile(definition)](#module_imagefs.readFile) ⇒ <code>Promise.&lt;String&gt;</code>\n    * [.writeFile(definition, contents)](#module_imagefs.writeFile) ⇒ <code>Promise</code>\n    * [.copy(input, output)](#module_imagefs.copy) ⇒ <code>Promise</code>\n    * [.replace(definition, search, replace)](#module_imagefs.replace) ⇒ <code>Promise</code>\n    * [.listDirectory(definition)](#module_imagefs.listDirectory) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n\n<a name=\"module_imagefs.interact\"></a>\n\n### imagefs.interact(disk, partition) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Get a bluebird.disposer of a node fs like interface for a partition  \n**Returns**: <code>bluebird.disposer.&lt;fs&gt;</code> - node fs like interface  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| disk | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| partition | <code>Number</code> | partition number |\n\n**Example**  \n```js\nPromise.using imagefs.interact('/foo/bar.img', 5), (fs) ->\n  fs.readFileAsync('/bar/qux')\n  .then (contents) ->\n    console.log(contents)\n```\n<a name=\"module_imagefs.read\"></a>\n\n### imagefs.read(definition) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Get a device file readable stream  \n**Returns**: <code>bluebird.disposer.&lt;ReadStream&gt;</code> - file stream  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\ndisposer = imagefs.read\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n\nPromise.using disposer, (stream) ->\n  out = fs.createWriteStream('/bar/qux')\n  stream.pipe(out)\n  utils.waitStream(out)\n```\n<a name=\"module_imagefs.write\"></a>\n\n### imagefs.write(definition, stream) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Write a stream to a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| stream | <code>ReadStream</code> | contents stream |\n\n**Example**  \n```js\nimagefs.write\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, fs.createReadStream('/baz/qux')\n```\n<a name=\"module_imagefs.readFile\"></a>\n\n### imagefs.readFile(definition) ⇒ <code>Promise.&lt;String&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Read a device file  \n**Returns**: <code>Promise.&lt;String&gt;</code> - file text  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.readFile\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n.then (contents) ->\n\tconsole.log(contents)\n```\n<a name=\"module_imagefs.writeFile\"></a>\n\n### imagefs.writeFile(definition, contents) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Write a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| contents | <code>String</code> | contents string |\n\n**Example**  \n```js\nimagefs.writeFile\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'foo bar baz'\n```\n<a name=\"module_imagefs.copy\"></a>\n\n### imagefs.copy(input, output) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Copy a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| input | <code>Object</code> | input device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [input.partition] | <code>Number</code> | partition number |\n| input.path | <code>String</code> | file path |\n| output | <code>Object</code> | output device path definition |\n| output.image | <code>String</code> | path to the image |\n| [output.partition] | <code>Number</code> | partition number |\n| output.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.copy\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n,\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/hello'\n```\n<a name=\"module_imagefs.replace\"></a>\n\n### imagefs.replace(definition, search, replace) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Perform search and replacement in a file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| search | <code>String</code> \\| <code>RegExp</code> | search term |\n| replace | <code>String</code> | replace value |\n\n**Example**  \n```js\nimagefs.replace\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'bar', 'baz'\n```\n<a name=\"module_imagefs.listDirectory\"></a>\n\n### imagefs.listDirectory(definition) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: List the contents of a directory  \n**Returns**: <code>Promise.&lt;Array.&lt;String&gt;&gt;</code> - list of files in directory  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | directory path |\n\n**Example**  \n```js\nimagefs.listDirectory\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/my/directory'\n.then (files) ->\n\tconsole.log(files)\n```\n\nSupport\n-------\n\nIf you're having any problem, please [raise an issue](https://github.com/resin-io/resin-image-fs/issues/new) on GitHub and the Resin.io team will be happy to help.\n\nTests\n-----\n\nRun the test suite by doing:\n\n```sh\n$ npm test\n```\n\nContribute\n----------\n\n- Issue Tracker: [github.com/resin-io/resin-image-fs/issues](https://github.com/resin-io/resin-image-fs/issues)\n- Source Code: [github.com/resin-io/resin-image-fs](https://github.com/resin-io/resin-image-fs)\n\nBefore submitting a PR, please make sure that you include tests, and that [coffeelint](http://www.coffeelint.org/) runs without any warning:\n\n```sh\n$ npm test\n```\n\nLicense\n-------\n\nThe project is licensed under the Apache 2.0 license.\n","readmeFilename":"README.md","gitHead":"2596a1c286adb8ecb78b113ff2b17be09b0f0945","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@6.0.0-update-file-disk-2-2596a1c286adb8ecb78b113ff2b17be09b0f0945","_nodeVersion":"10.20.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-AhPUWNtZrdAYndTqTXqCM4/q64ghqyuVFuOijBCvvccYHszkFC3WANCWK6Q76BkRPtHf+P3ZBfJo4oar4b/Sqw==","shasum":"bf75d8cf91d6a699c2888a55d0f08d794d15acf9","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-6.0.0-update-file-disk-2-2596a1c286adb8ecb78b113ff2b17be09b0f0945.tgz","fileCount":7,"unpackedSize":40521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGvN9CRA9TVsSAnZWagAA2oQP/itar48DTqrMfzrz+Qpd\nZvFjI6OHMCSxOA48iuCkEb2l1U+dORvUiR1lvc293SIinVedTx5ZPEKHZpt+\n4ZcfgoslR21cZrgqDMGWD1thM4NddLv0+vOCkbQQZDQ6d81KeVh06ePgGs1l\ndKfWl+oBVLJU3YOp2F7krR1NrwK0tI9LK90JP4blUj5kOi9poSnbdO2cqNIQ\n3UTw36ZTT16U+ZPQF/LgB23/lcePmQQMgf10dhBgy5UWiroUAyLig+kbBTEO\noOObNo9tGBEWDo6wUlPxOfDAEz1rmF8L3WiSeu49Kj5AHrIVljsjfRt0qUNr\niNZwBgPr6kl2yEE9/w1xHDEw2eFlthgu8d/wrCi0jW6YoCUlGpk67c7E5lTk\ncemRg562NJAB0I7CKOHmOde4f/n93bUdK1/+Kf4NhqiPtWfdBIhOd4Rp5NNm\nQnR1EsU5JYZbg6QbXMXA6uxQA1r0mnNhGVelxJRQtLXDQUyArOzktO+nNslx\n3AZCB9DpVH6JB0zcUlJ56FHAYmL9qEUk6Tp9CUn4mHE4GBImbiVvFy84WST0\noGBBvMeLC2JoJl8SonnWFl+zqNwDvIX7MHqdQoZSibTkE1gNg3otTDo2O1qL\nbxJoeXy8xaAP+0dYFXtgh0YxNGubPa6TEuHJfw1Mu9IcKL06XvW8iN+F5led\n1vqq\r\n=o6U/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAsNFLPUz/p6qwYymwxv8ifpFcp1mf3AXMpFqeWCIF1tAiAKqTZQRhJrgH+uBfjsz44/omIbsjLmviTIQZ0710zPnQ=="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"}],"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_6.0.0-update-file-disk-2-2596a1c286adb8ecb78b113ff2b17be09b0f0945_1595601789322_0.9337881818345273"},"_hasShrinkwrap":false},"6.0.0":{"name":"resin-image-fs","version":"6.0.0","description":"Resin.io image filesystem manipulation utilities","main":"build/imagefs.js","homepage":"https://github.com/resin-io/resin-image-fs","repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"keywords":["resin","fs","filesystem","device","image"],"directories":{"test":"tests"},"scripts":{"lint":"resin-lint lib tests","clean":"rm -rf build","build":"npm run clean && coffee --bare -o build lib","test":"npm run lint && coffee tests/e2e.coffee","readme":"jsdoc2md --template doc/README.hbs build/imagefs.js > README.md","prepublish":"npm run test && npm run build && npm run readme"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}],"license":"Apache-2.0","devDependencies":{"chalk":"^3.0.0","coffee-script":"^1.12.7","jsdoc-to-markdown":"^5.0.3","resin-lint":"^3.3.1","wary":"^1.0.0"},"dependencies":{"bluebird":"^3.5.1","ext2fs":"^1.0.28","fatfs":"^0.10.6","file-disk":"^7.0.1","lodash":"^4.17.5","partitioninfo":"^6.0.0","replacestream":"^4.0.0"},"gitHead":"978458cc8351531021100403e5d98abb8452afb2","bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"_id":"resin-image-fs@6.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Vh1wQvvujnqkoRNWfYah1C6ZY6fMKqQwdA11GEaw4BKpf3Vio3I2nCqLPiCV6QfmEvoBH6AVY1+GlAUeq6bY/A==","shasum":"250239b8527862216ba4bd364aa4765443e86646","tarball":"https://registry.npmjs.org/resin-image-fs/-/resin-image-fs-6.0.0.tgz","fileCount":7,"unpackedSize":40461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGvTZCRA9TVsSAnZWagAARn4P/3p1kseBiv4/t8H0+hL5\nWNnmf2WX5BiBADPv98mBR2P6hjaJccNZn7j919AJqFWGCEspcO2l8pEwembX\nlyY+rOzQR6IrLoOSB/U64xvKTGpjf1pFI/ECWUMEe5LVAj0t9smgHwYiLCSg\nbTWOw+gXP8TZbhrmmqlgtwRy4W+kC7yriaW8rKcDllc/S8LZQWa9pkD7QO0Q\nUhM/s7YRB7qoXv4G03XIFFMaaD2wJvFcyc2WLAqWGpZh25K06iQwbs9CFTZr\nd+td+UPE05bCzaiyOZbZZ6OFJDGHu+w9tlRmRqbRTSAjUHOxsuusuVxIlIEW\nwLbfPuXCRdwgX+zhOV8ru6Fn/TptCusvZq8TV/M4/BFksKBkoOfil2y1mrof\nTASuH4qfzd8wEqTcNZgBc1r8ZL9TQJ1fkmWT0E+xZk5PafaARmRyT+rGQ0DI\nM1HgiEqEeM3+BWhQbiw+yaVCAbDwAd7HOT3Ijvfk52WM/jnJHdWlovId/Uny\nCMimELuYW75/lTeCdwLP+cYURyD+vL4EfwrXVFZ6FPPzhHWL25sRrKL3mlbH\njb3fohwbACS0ccQCk0OvhNXteF9IrElVSTFGQ+1w8VPDp3pCCSwGz2f6eLXi\n5TPwgRgJ0YagADeZ1q0Wp77+x3Thxv1UEDSO94Ai44TjrhrmberCO6a5+o8c\n8irb\r\n=1hwA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnxfqsSKcpZjeiczTXbQzfrGjhdqE5NpsmUndX93nZQwIgUsND2S2ofmb+aayLpDd47IpYo3KV1cq36V4U7ROzsKc="}]},"maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"}],"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resin-image-fs_6.0.0_1595602137318_0.06702877984781086"},"_hasShrinkwrap":false,"deprecated":"resin-image-fs is deprecated, please use balena-image-fs instead"}},"readme":"resin-image-fs\n--------------\n\n[![npm version](https://badge.fury.io/js/resin-image-fs.svg)](http://badge.fury.io/js/resin-image-fs)\n[![dependencies](https://david-dm.org/resin-io/resin-image-fs.png)](https://david-dm.org/resin-io/resin-image-fs.png)\n[![Build Status](https://travis-ci.org/resin-io/resin-image-fs.svg?branch=master)](https://travis-ci.org/resin-io/resin-image-fs)\n[![Build status](https://ci.appveyor.com/api/projects/status/86bot1jaepcg5xlv?svg=true)](https://ci.appveyor.com/project/resin-io/resin-image-fs)\n\nJoin our online chat at [![Gitter chat](https://badges.gitter.im/resin-io/chat.png)](https://gitter.im/resin-io/chat)\n\nResin.io image filesystem manipulation utilities.\n\nRole\n----\n\nThe intention of this module is to provide low level utilities to Resin.io operating system data partitions.\n\n**THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY**.\n\nInstallation\n------------\n\nInstall `resin-image-fs` by running:\n\n```sh\n$ npm install --save resin-image-fs\n```\n\nDocumentation\n-------------\n\n\n* [imagefs](#module_imagefs)\n    * [.interact(disk, partition)](#module_imagefs.interact) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n    * [.read(definition)](#module_imagefs.read) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n    * [.write(definition, stream)](#module_imagefs.write) ⇒ <code>Promise</code>\n    * [.readFile(definition)](#module_imagefs.readFile) ⇒ <code>Promise.&lt;String&gt;</code>\n    * [.writeFile(definition, contents)](#module_imagefs.writeFile) ⇒ <code>Promise</code>\n    * [.copy(input, output)](#module_imagefs.copy) ⇒ <code>Promise</code>\n    * [.replace(definition, search, replace)](#module_imagefs.replace) ⇒ <code>Promise</code>\n    * [.listDirectory(definition)](#module_imagefs.listDirectory) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n\n<a name=\"module_imagefs.interact\"></a>\n\n### imagefs.interact(disk, partition) ⇒ <code>bluebird.disposer.&lt;fs&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Get a bluebird.disposer of a node fs like interface for a partition  \n**Returns**: <code>bluebird.disposer.&lt;fs&gt;</code> - node fs like interface  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| disk | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| partition | <code>Number</code> | partition number |\n\n**Example**  \n```js\nPromise.using imagefs.interact('/foo/bar.img', 5), (fs) ->\n  fs.readFileAsync('/bar/qux')\n  .then (contents) ->\n    console.log(contents)\n```\n<a name=\"module_imagefs.read\"></a>\n\n### imagefs.read(definition) ⇒ <code>bluebird.disposer.&lt;ReadStream&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Get a device file readable stream  \n**Returns**: <code>bluebird.disposer.&lt;ReadStream&gt;</code> - file stream  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\ndisposer = imagefs.read\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n\nPromise.using disposer, (stream) ->\n  out = fs.createWriteStream('/bar/qux')\n  stream.pipe(out)\n  utils.waitStream(out)\n```\n<a name=\"module_imagefs.write\"></a>\n\n### imagefs.write(definition, stream) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Write a stream to a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| stream | <code>ReadStream</code> | contents stream |\n\n**Example**  \n```js\nimagefs.write\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, fs.createReadStream('/baz/qux')\n```\n<a name=\"module_imagefs.readFile\"></a>\n\n### imagefs.readFile(definition) ⇒ <code>Promise.&lt;String&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Read a device file  \n**Returns**: <code>Promise.&lt;String&gt;</code> - file text  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.readFile\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/qux'\n.then (contents) ->\n\tconsole.log(contents)\n```\n<a name=\"module_imagefs.writeFile\"></a>\n\n### imagefs.writeFile(definition, contents) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Write a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| contents | <code>String</code> | contents string |\n\n**Example**  \n```js\nimagefs.writeFile\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'foo bar baz'\n```\n<a name=\"module_imagefs.copy\"></a>\n\n### imagefs.copy(input, output) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Copy a device file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| input | <code>Object</code> | input device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [input.partition] | <code>Number</code> | partition number |\n| input.path | <code>String</code> | file path |\n| output | <code>Object</code> | output device path definition |\n| output.image | <code>String</code> | path to the image |\n| [output.partition] | <code>Number</code> | partition number |\n| output.path | <code>String</code> | file path |\n\n**Example**  \n```js\nimagefs.copy\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n,\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/baz/hello'\n```\n<a name=\"module_imagefs.replace\"></a>\n\n### imagefs.replace(definition, search, replace) ⇒ <code>Promise</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: Perform search and replacement in a file  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | file path |\n| search | <code>String</code> \\| <code>RegExp</code> | search term |\n| replace | <code>String</code> | replace value |\n\n**Example**  \n```js\nimagefs.replace\n\timage: '/foo/bar.img'\n\tpartition: 2\n\tpath: '/baz/qux'\n, 'bar', 'baz'\n```\n<a name=\"module_imagefs.listDirectory\"></a>\n\n### imagefs.listDirectory(definition) ⇒ <code>Promise.&lt;Array.&lt;String&gt;&gt;</code>\n**Kind**: static method of [<code>imagefs</code>](#module_imagefs)  \n**Summary**: List the contents of a directory  \n**Returns**: <code>Promise.&lt;Array.&lt;String&gt;&gt;</code> - list of files in directory  \n**Access**: public  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| definition | <code>Object</code> | device path definition |\n| definition.image | <code>String</code> \\| <code>filedisk.Disk</code> | path to the image or filedisk.Disk instance |\n| [definition.partition] | <code>Number</code> | partition number |\n| definition.path | <code>String</code> | directory path |\n\n**Example**  \n```js\nimagefs.listDirectory\n\timage: '/foo/bar.img'\n\tpartition: 5\n\tpath: '/my/directory'\n.then (files) ->\n\tconsole.log(files)\n```\n\nSupport\n-------\n\nIf you're having any problem, please [raise an issue](https://github.com/resin-io/resin-image-fs/issues/new) on GitHub and the Resin.io team will be happy to help.\n\nTests\n-----\n\nRun the test suite by doing:\n\n```sh\n$ npm test\n```\n\nContribute\n----------\n\n- Issue Tracker: [github.com/resin-io/resin-image-fs/issues](https://github.com/resin-io/resin-image-fs/issues)\n- Source Code: [github.com/resin-io/resin-image-fs](https://github.com/resin-io/resin-image-fs)\n\nBefore submitting a PR, please make sure that you include tests, and that [coffeelint](http://www.coffeelint.org/) runs without any warning:\n\n```sh\n$ npm test\n```\n\nLicense\n-------\n\nThe project is licensed under the Apache 2.0 license.\n","maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"}],"time":{"modified":"2022-06-26T11:49:21.864Z","created":"2015-07-20T16:49:14.523Z","1.0.0":"2015-07-20T16:49:14.523Z","2.0.0":"2015-07-23T18:01:22.365Z","2.0.1":"2015-07-27T15:08:12.362Z","2.1.0":"2015-07-28T20:58:05.920Z","2.1.1":"2015-10-13T15:35:49.841Z","2.1.2":"2015-12-04T14:57:41.782Z","2.2.0":"2016-10-03T22:19:19.004Z","2.3.0":"2016-10-05T04:06:52.166Z","3.0.0":"2017-06-19T10:56:55.928Z","4.0.0":"2017-06-19T18:20:34.743Z","4.0.1":"2017-06-23T13:40:47.766Z","4.0.2":"2017-10-18T10:49:45.475Z","4.1.0":"2017-11-21T18:29:31.697Z","4.1.1":"2017-12-11T14:10:10.753Z","4.1.2":"2018-01-25T14:03:25.355Z","5.0.0":"2018-03-30T20:15:44.427Z","5.0.1":"2018-04-25T10:43:34.839Z","5.0.2":"2018-04-25T13:56:54.024Z","5.0.3":"2018-04-30T08:38:51.538Z","5.0.4":"2018-05-01T11:13:21.640Z","5.0.5-update-file-disk-8c10bb2cd91ca967531d693450e87c1684dfaeef":"2018-11-29T17:22:08.782Z","5.0.5":"2018-11-29T17:26:10.508Z","5.0.6-update-partitioninfo-95d7c631d1341164839649af6459a78afff72d12":"2019-01-14T17:31:09.555Z","5.0.6":"2019-01-14T17:36:20.105Z","5.0.7-update-file-disk-6-679af85a3ee01916413fc931899f6e83703ff0fa":"2019-04-04T16:05:27.870Z","5.0.7":"2019-04-05T14:07:05.324Z","5.0.8-node12-41aa655ef43b10863877ec3fb2e0c40f0810df9a":"2019-05-06T09:28:29.264Z","5.0.8":"2019-05-06T09:39:51.566Z","5.0.9-update-dev-deps-c84f474d1b27709539d4f2db2606e29221d83e40":"2020-03-02T17:08:15.621Z","5.0.9":"2020-03-02T17:46:36.181Z","6.0.0-update-file-disk-2-2596a1c286adb8ecb78b113ff2b17be09b0f0945":"2020-07-24T14:43:09.528Z","6.0.0":"2020-07-24T14:48:57.425Z"},"homepage":"https://github.com/resin-io/resin-image-fs","keywords":["resin","fs","filesystem","device","image"],"repository":{"type":"git","url":"git://github.com/resin-io/resin-image-fs.git"},"author":{"name":"Juan Cruz Viotti","email":"juan@resin.io"},"bugs":{"url":"https://github.com/resin-io/resin-image-fs/issues"},"license":"Apache-2.0","readmeFilename":"README.md","contributors":[{"name":"Alexis Svinartchouk","email":"alexis@resin.io"},{"name":"Juan Cruz Viotti","email":"juan@resin.io"}]}