{"_id":"@alluo/react-native-cloud-fs","_rev":"2-9f3b175c931eb0b14ae7f5ee479b0849","name":"@alluo/react-native-cloud-fs","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@alluo/react-native-cloud-fs","version":"1.0.0","description":"A react-native library for reading and writing files to _iCloud Drive_ (iOS) and _Google Drive_ (Android).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react-native"],"author":"","license":"ISC","directories":{"doc":"docs"},"repository":{"type":"git","url":"git+https://github.com/GetAlluo/react-native-cloud-fs.git"},"bugs":{"url":"https://github.com/GetAlluo/react-native-cloud-fs/issues"},"homepage":"https://github.com/GetAlluo/react-native-cloud-fs#readme","gitHead":"f840708c86a4c1858310076a4675a986e6f1ad6b","_id":"@alluo/react-native-cloud-fs@1.0.0","_nodeVersion":"14.17.6","_npmVersion":"8.13.2","dist":{"integrity":"sha512-Oajp7Ys7xm8mOZJrofJB6fx/daQGd0tIMqtbGUNP2X12fyNqQRjODJTXGCW+qPHofVazVXLlzvsX7iAPBq8S2w==","shasum":"8878ad32f1b6281d308cbbff49933c94ef8669e5","tarball":"https://registry.npmjs.org/@alluo/react-native-cloud-fs/-/react-native-cloud-fs-1.0.0.tgz","fileCount":23,"unpackedSize":208293,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/4KwPXvvC1ns+3T8ZwTZqrf1jnrqPh1K2cra7eL58ugIgN27OIVtIV2rYP8JxXs1Flg03fnU8yGE4Vj4wDq5Vhhc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizCy7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqawQ//dZp5C0Lvwk9C2IdN0aU8bb9m4cbjpQpFQE7zj/dGjTmY5rEb\r\nqHKOwZuTD4bSPGDfgcPnAgpggOg3cPksamppRKSYgPfP73p+FJCOkM8tov78\r\nJfTNG/keVoHDPEtGrBsV0PapI9u5Iw83s9Qu3aHlXFZ69Ks0bcTJXbiSBdLM\r\nZBZU7D5DNYjPyiNh6ZuYhnLLkfS+h0UXlcLlHC0FDOySLzRtmm9GTVaErReI\r\nvqAybVvsJLWAGxu5VXSBHZ3ozLi6CfYgSIJGLi/OZDOX26g4nKliT5CxERoY\r\nf2tUMSKzNTfTcxhWruEXlsbvFSkB3LijJjS+1KYigXHJ2F5X4FW52ZMI1lqZ\r\n4XINhWKRKZXIjgro6kNb+zdWNchNL5k+Pv38ySweSmk+U4SLO02IxcUeys27\r\nLTBoNvx/Srfp7Jmi/SP5JvNwQiw+IjSmk6W8KplQGTaOjFGHGt1gBzPyEGmN\r\nsQJheJSOnSIYbxxTdgeTOwP9UWxs61ngFTHqEbDKme0rqj7rXTacgfxj2IGl\r\nz8eoWTCtQUoHwC6F3aOOac4Rw/METhkbEIPBMT4SORtbfsJoS8TQfChFvJA3\r\nbgs7gMffo9MVfsFgvLKXy0fkOPlve0LM1HiGd1qnkoOXhLJqXN5prC0XanmI\r\nxbMU2T4rrAH5IlFQv3hWd3B0QRH5DCrnFFc=\r\n=q7e7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"vascosimoes-bytepitch","email":"vasco.simoes@bytepitch.com"},"maintainers":[{"name":"vascosimoes-bytepitch","email":"vasco.simoes@bytepitch.com"},{"name":"0xtuytuy","email":"rtuyaerts@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-cloud-fs_1.0.0_1657547962875_0.5655481970413287"},"_hasShrinkwrap":false},"1.0.1":{"name":"@alluo/react-native-cloud-fs","version":"1.0.1","description":"A react-native library for reading and writing files to _iCloud Drive_ (iOS) and _Google Drive_ (Android).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react-native"],"author":"","license":"ISC","directories":{"doc":"docs"},"repository":{"type":"git","url":"git+https://github.com/GetAlluo/react-native-cloud-fs.git"},"bugs":{"url":"https://github.com/GetAlluo/react-native-cloud-fs/issues"},"homepage":"https://github.com/GetAlluo/react-native-cloud-fs#readme","gitHead":"a39c45bfab069515d28f6a95b6fd9affbdd9fff5","_id":"@alluo/react-native-cloud-fs@1.0.1","_nodeVersion":"14.17.6","_npmVersion":"8.13.2","dist":{"integrity":"sha512-+oMxitQOTl4I+1UyBZ1yK8iasEoXTAnG2NskPWTgN4tofc5+gz/n334efEPDTNR2EKka2lfD2eqIUCFQi/QlLg==","shasum":"17942f14977b071c9020461e3cd4897d80acc86e","tarball":"https://registry.npmjs.org/@alluo/react-native-cloud-fs/-/react-native-cloud-fs-1.0.1.tgz","fileCount":23,"unpackedSize":208326,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGpYiKqmZAYvVLlLyBDzhyIv8zIf+3ehOwRCUlV3mHkTAiEAw8GPVSErj1m0fxSD3Yr7mKmO4u1j4xTWfUgD2vkUTL4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizEI8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqx2RAAg/FrJstYqZiOouFMYrYIAGy0d2sbGYqGowC2WjbLOPpIzJft\r\nJwoC0AwlUeDEG0lHcNMiEEizRETzeYju0QQMTLzJBnzaKCMcZ3XKVZVJZcOB\r\nxLkwuOSsnggMDnN4fmRJKTUHa1fQ0vFJrj8gJXvrtD8WelPIwwleK0+MRwiv\r\nZ7ehRwDUklQq6hENOIwWMZp6yl8ZfU1lNXkGvYbsaq8sEfA2O6P3RgCNiWRC\r\nnv12Z4IExspfHd/Z1gqP5U0cSy2WCQXDbZb6squ+SI2kEumPCYGEe13gy24J\r\n5Nmn3b+zLkqR4z8xzPqilLpPrI6cL/YGdTfpz1GWKSe3PeGzdb8OqIJPndOt\r\nFinHCQ25eio4QmfgsIHpShMy5jqAvFKHPfG6laVmqfiNJW+duWeCTcGeMhQy\r\nFTL93HKen+vEINB5zNziG6R8a/gDUezdbAKtdZof1GyNJE0FjFgtL5WBlEKs\r\nuBf3VItlX27Mzk2rfoDKXfgzKGbOCpC6Cep1Wmr7Ruff/syO+Uu2Ve4XbjQG\r\n+DCwq/Ee8biAin6agDaCcKlxniVvBfj6emcjkLmkrzO+7s9UX042hG41pqT4\r\n/JfGPRPKuTaVTlp3u6WEgLgsvZEHoDmFkoNoOM65ZDTuHn1Q57QIp7525bkD\r\nGsevxEPss87WQwQzd2d0miGiqEj134hTO6Q=\r\n=U+oI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"vascosimoes-bytepitch","email":"vasco.simoes@bytepitch.com"},"maintainers":[{"name":"vascosimoes-bytepitch","email":"vasco.simoes@bytepitch.com"},{"name":"0xtuytuy","email":"rtuyaerts@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-cloud-fs_1.0.1_1657553468158_0.07760654764812491"},"_hasShrinkwrap":false},"1.0.2":{"name":"@alluo/react-native-cloud-fs","version":"1.0.2","description":"A react-native library for reading and writing files to _iCloud Drive_ (iOS) and _Google Drive_ (Android).","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react-native"],"author":"","license":"ISC","directories":{"doc":"docs"},"repository":{"type":"git","url":"git+https://github.com/GetAlluo/react-native-cloud-fs.git"},"bugs":{"url":"https://github.com/GetAlluo/react-native-cloud-fs/issues"},"homepage":"https://github.com/GetAlluo/react-native-cloud-fs#readme","gitHead":"8273aef9d33209aed0e95a76e664a4c972af167a","_id":"@alluo/react-native-cloud-fs@1.0.2","_nodeVersion":"14.17.6","_npmVersion":"8.13.2","dist":{"integrity":"sha512-4P0vQ+EaBPicpHzuX6z4ERR2n2RO46Jk2dQTB9GwG9OZE7v1eQHLaxQv4zVFmIIt9Rpyl4+HBV97IUAgUCA3Aw==","shasum":"82ebfc58b62d792f16048c39ed04432bab53169f","tarball":"https://registry.npmjs.org/@alluo/react-native-cloud-fs/-/react-native-cloud-fs-1.0.2.tgz","fileCount":23,"unpackedSize":208307,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsFfmai/c7L/fDXikG1yUvf2ec1BsY8bnGRfNakKd3twIgZDI9DjJJ8fAFhlaX2fXuDpcoERjDEcV7jFGZw7rjUqU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizETqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKXQ//cpGaGZxIZkEA4FQhdpSufbcqu+R2lHbtvQn5MHFV3Owu6JcI\r\nGgG8ACDqzs1E6h7u+Ym9hkhE6314mIdV/54k4OdVr6AUHagD73xuvjaTRnYr\r\nVmruCaNiwtxSp84N59yNcCbGBsrclYXMol1OvnnSLSXC7jcnmU2sdPGpJJ1i\r\n1+ar2qqjrC16mA1dPbVCz4p9kPAdtfD35r7kTZHIZSERJzPjeF71eLgQWoMO\r\nRYv/v6D60xPQupeYQRBLukLfyVkvfdq9j+ZEcvjdZlqDD4NgmjDH97+z13R0\r\nTyNbCdxH83DjERfkhr21kUGTdqZpsBujQTUxrujNXmOZOhQun6bw5a3jCaO4\r\nRn8EkuPOge/5NmP3IXFLhLDaEvK9FYUggUEHmvAAgnSbL7DqV99CLeLqJ8+8\r\n63PVUMsultrrLAL3yuDp/rx32kve9FShjD6McpIEnf0IHeV9HkOJk8YTHjq5\r\ny6aDFTMJpm2iJ6pbG1OTFSRxeqtmsula/wy4F0CJpedNN2bXV/uBRXYJ7Vcq\r\ncr1UsEeB8OwueB/UU3eqcG75AXCl4lkmAf0e9XAP6zv5p3bJR8fd52GwkBYE\r\ns2dHvWzjrmSGzhzilZ8AFjii2wB8wusAlzMLeSUjffpKj0Es9/Y1ttkwZdFj\r\nUCR9/vSc5Z1tYU005ERPqbLqHlkpH/EqVk8=\r\n=hM3X\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"vascosimoes-bytepitch","email":"vasco.simoes@bytepitch.com"},"maintainers":[{"name":"vascosimoes-bytepitch","email":"vasco.simoes@bytepitch.com"},{"name":"0xtuytuy","email":"rtuyaerts@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-cloud-fs_1.0.2_1657554154629_0.41557227844767497"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-11T13:59:22.822Z","1.0.0":"2022-07-11T13:59:23.154Z","modified":"2022-07-11T15:42:35.049Z","1.0.1":"2022-07-11T15:31:08.387Z","1.0.2":"2022-07-11T15:42:34.925Z"},"maintainers":[{"name":"vascosimoes-bytepitch","email":"vasco.simoes@bytepitch.com"},{"name":"0xtuytuy","email":"rtuyaerts@hotmail.com"}],"description":"A react-native library for reading and writing files to _iCloud Drive_ (iOS) and _Google Drive_ (Android).","homepage":"https://github.com/GetAlluo/react-native-cloud-fs#readme","keywords":["react-native"],"repository":{"type":"git","url":"git+https://github.com/GetAlluo/react-native-cloud-fs.git"},"bugs":{"url":"https://github.com/GetAlluo/react-native-cloud-fs/issues"},"license":"ISC","readme":"\n# react-native-cloud-fs\n\nA react-native library for reading and writing files to _iCloud Drive_ (iOS) and _Google Drive_ (Android).\n\n[Getting started](./docs/getting-started.md)\n\n## Usage\n```javascript\nimport RNCloudFs from 'react-native-cloud-fs';\n```\n\n### fileExists (options)\nReturns a promise which when resolved returns a boolean value indicating if the specified path already exists.\n\n```javascript\nconst destinationPath = \"foo-bar/docs/info.pdf\";\nconst scope = 'visible';\n\nRNCloudFs.fileExists({\n  targetPath: destinationPath, \n  scope: scope\n})\n  .then((exists) => {\n    console.log(exists ? \"this file exists\" : \"this file does not exist\");\n  })\n  .catch((err) => {\n    console.warn(\"it failed\", err);\n  })\n```\n_targetPath_: a path\n\n_scope_: determines if the user-visible documents (`visible`) or the app-visible documents (`hidden`) are searched for the specified path\n\n### copyToCloud (options)\nCopies the content of a file (or uri) to the target file system.  The files will appear in a either a user visible \ndirectory, or a dectory that only the app can see.  The directory is named after `destinationPath`.  The directory \nhierarchy for the destination path will be created if it doesn't already exist. If the target file already exists \nit a new filename is chosen and returned when the promise is resolved. \n\n```javascript\nconst sourceUri = {uri: 'https://foo.com/bar.pdf'};\nconst destinationPath = \"foo-bar/docs/info.pdf\";\nconst mimeType = null;\nconst scope = 'visible';\n\nRNCloudFs.copyToCloud({\n  sourcePath: sourceUri, \n  targetPath: destinationPath, \n  mimeType: mimeType, \n  scope: scope\n})\n  .then((path) => {\n    console.log(\"it worked\", path);\n  })\n  .catch((err) => {\n    console.warn(\"it failed\", err);\n  })\n```\n\n_sourceUri_: object with any uri or an **absolute** file path and optional http headers, e.g:\n * `{path: '/foo/bar/file.txt'}`\n * `{uri: 'file://foo/bar/file.txt'}`\n * `{uri: 'http://www.files.com/foo/bar/file.txt', 'http-headers': {user: 'foo', password: 'bar'}}` (http-headers are android only)\n * `{uri: 'content://media/external/images/media/296'}` (android only)\n * `{uri: 'assets-library://asset/asset.JPG?id=106E99A1-4F6A-45A2-B320-B0AD4A8E8473&ext=JPG'}` (iOS only)\n \n_targetPath_: a **relative** path including a filename under which the file will be placed, e.g:\n * `my-cloud-text-file.txt`\n * `foo/bar/my-cloud-text-file.txt`\n \n_mimeType_:  a mime type to store the file with **or null** (android only) , e.g:\n * `text/plain`\n * `application/json`\n * `image/jpeg`\n\n_scope_: a string to specify if the user can access the document (`visible`) or not (`hidden`)\n\n### listFiles (options)\nLists files in a directory along with some file metadata.  The scope determines if the file listing takes place in the app folder or the public user documents folder.\n\n```javascript\nconst path = \"dirA/dirB\";\nconst scope = 'hidden';\n\nRNCloudFs.listFiles({targetPath: path, scope: scope})\n  .then((res) => {\n    console.log(\"it worked\", res);\n  })\n  .catch((err) => {\n    console.warn(\"it failed\", err);\n  })\n```\n\n_targetPath_: a path representing a folder to list files from\n\n_scope_: a string to specify if the files are the user-visible documents (`visible`) or the app-visible documents (`hidden`)\n","readmeFilename":"README.md"}