{"versions":{"1.0.15":{"name":"@obremba/cordova-plugin-saf-mediastore","version":"1.0.15","description":"Cordova Plugin to read and save files using the Storage Access Framework and Mediastore on Android only.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"cordova":{"id":"@obremba/cordova-plugin-saf-mediastore","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/obremba/cordova-plugin-saf-mediastore.git"},"keywords":["cordova","file","ecosystem:cordova","cordova-android"],"author":{"name":"Obremba","email":"sergio31919@gmail.com"},"license":"(NPOSL-3.0 OR UNLICENSED)","bugs":{"url":"https://github.com/obremba/cordova-plugin-saf-mediastore/issues"},"homepage":"https://github.com/obremba/cordova-plugin-saf-mediastore#readme","types":"www/safMediastore.d.ts","gitHead":"06c9c4a755cde0bb47a698a44f47d9116dd62f7c","_id":"@obremba/cordova-plugin-saf-mediastore@1.0.15","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-yntJUPpKvDKsClTGVKfK3J3LB7uT/8LGn3NJ0tStz/n53d+OTNj0tNT9Bk0s/A+nc0KAXZCbRA5bTpidf47xgQ==","shasum":"6ed3dc3749448dd3ea69ba127b7e825b5231456a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@obremba/cordova-plugin-saf-mediastore/-/cordova-plugin-saf-mediastore-1.0.15.tgz","fileCount":8,"unpackedSize":25777,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClxbL+78t3MijCvxBaYlkRZ0e1BcenJWn9lcSlYuR5QwIhAKTRll9BR5ts6JZukFYYaGMjzYW/4CaQ8RKzOWd4Grjx"}],"size":6185},"_npmUser":{"name":"anonymous","email":"sergio31919@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sergio31919@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-saf-mediastore_1.0.15_1696600629284_0.9620908716556613"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-06T13:57:09.496Z","publish_time":1696600629496,"_source_registry_name":"default","contributors":[]},"1.0.16":{"name":"@obremba/cordova-plugin-saf-mediastore","version":"1.0.16","description":"Cordova Plugin to read and save files using the Storage Access Framework and Mediastore on Android only.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"cordova":{"id":"@obremba/cordova-plugin-saf-mediastore","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/obremba/cordova-plugin-saf-mediastore.git"},"keywords":["cordova","file","ecosystem:cordova","cordova-android"],"author":{"name":"Obremba","email":"sergio31919@gmail.com"},"license":"(NPOSL-3.0 OR UNLICENSED)","bugs":{"url":"https://github.com/obremba/cordova-plugin-saf-mediastore/issues"},"homepage":"https://github.com/obremba/cordova-plugin-saf-mediastore#readme","types":"www/safMediastore.d.ts","gitHead":"06c9c4a755cde0bb47a698a44f47d9116dd62f7c","_id":"@obremba/cordova-plugin-saf-mediastore@1.0.16","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-Tx3Og6qMJd1rE1E8WAnCI23ijjdBZbyM6sEKmIam+vI3IcrxXBhqHSS6NrHoBRSz6ELh3YXtCcwUUhxdyvrxSQ==","shasum":"0d8d9f1aa4ad8b7ab3da3c3b7e5bbb8809b6f349","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@obremba/cordova-plugin-saf-mediastore/-/cordova-plugin-saf-mediastore-1.0.16.tgz","fileCount":8,"unpackedSize":25580,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1UlNBeKadOeU/OEXtiMR288+iKIrPWhYR+W/j6gfVYwIhANcvY42oNyV959NvTaB5YzYRdxl5b7GLABA7Mtn4S0Rz"}],"size":6139},"_npmUser":{"name":"anonymous","email":"sergio31919@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"sergio31919@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-saf-mediastore_1.0.16_1696602887910_0.4773680383681893"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-06T14:34:48.113Z","publish_time":1696602888113,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.0.16"},"name":"@obremba/cordova-plugin-saf-mediastore","time":{"created":"2023-10-06T13:58:49.081Z","modified":"2023-10-06T14:40:39.080Z","1.0.15":"2023-10-06T13:57:09.496Z","1.0.16":"2023-10-06T14:34:48.113Z"},"readme":"# cordova-plugin-saf-mediastore\n\n## Read and save files using the Storage Access Framework and Mediastore\n\nThis plugin allows you to read and save files using the Storage Access Framework and Mediastore on Android only.\n\n## Available methods\n\n```typescript\nselectFolder(uri:string):Promise<string>\n```\n\nLaunches an Intent to select a folder to which files can be saved. Returns the content URI.\n\n```typescript\nselectFile(uri:string):Promise<string>\n```\n\nLaunches an Intent to select a file. Returns the content URI.\n\n```typescript\nopenFolder(uri:string):Promise<void>\n```\n\nLaunches an Intent to open a folder in the folder picker.\n\n```typescript\nopenFile(uri:string):Promise<void>\n```\n\nLaunches an Intent to open a file.\n\n```typescript\nreadFile(uri:string):Promise<ArrayBuffer>\n```\n\nReads a file as an ArrayBuffer.\n\n```typescript\nwriteFile(params:{\n\tdata:string,\n\tfilename:string,\n\tfolder?:string,\n\tsubFolder?:string\n}):Promise<string>\n```\n\nWrites a file to a specific filename, with the folder and subfolder being optional. The subfolder will be created if it does not exist, and the default folder is the Downloads folder (saved via Mediastore). Returns the content URI. `data` is a Base 64 string.\n\n```typescript\noverwriteFile(params:{\n    uri:string,\n    data:string\n}):Promise<string>\n```\n\nOverwrites a file at a specific content URI. Returns the content URI.\n\n```typescript\nsaveFile(params:{\n\tdata:string,\n\tfilename?:string,\n\tfolder?:string\n}):Promise<string>\n```\n\nLaunches a file picker Intent to save a file, with the preferred filename and folder being optional. Returns the content URI. `data` is a Base 64 string.\n\n```typescript\ndeleteFile(uri:string):Promise<number>\n```\n\nDeletes a file at a specific content URI. Returns the number of files deleted.\n\n```typescript\ngetFileName(uri:string):Promise<string>\n```\n\nReturns the filename of the corresponding content URI.\n\n```typescript\ngetUri(params:{\n    folder:string,\n    subFolder?:string,\n    filename?:string,\n}):Promise<string>\n```\n\nReturns the content URI of the file in the corresponding folder and subfolder.\n\n```typescript\nexistsFile(filename: string): Promise<string>;\n```\n\nFrom a filename check if the files exist in the shared download folder return uri of the corresponding file if exists, otherwise return -1\n\n```typescript\ngetDataForOpenFile(uri: string): Promise<{\n    uri: string;\n    mimeType: string;\n    filename: string;\n  }>;\n```\n\nFrom Content URI return information about the file\n\nTo call methods:\n\n```typescript\ncordova.plugins.safMediastore.<function>(params); //returns a Promise\nawait cordova.plugins.safMediastore.<function>(params); //in an async function\n```","users":{}}