S3 compatible client wrapper based on knox
npm install ceph-s3 -S
Usage
I'm pretty lazy and always forget configurations. So, if you add fork this project, add a file 'users.json' to the root - then you can use these users, as they will be loaded on startup.
Otherwise just user ./lib/users or init function to pass your user configuration
var S3Client = ; // pass users that you will use with this clients3Client; // can use anything that is supported by knox - https://github.com/Automattic/knoxvar usernameClient = bucket: 'mrusername' 'myusername' { if err // failed to auth / connect / etc throw err; console;}; // any errors during init will be suppressed in _.noop// // access knox directly with mrwondeful.s3 if need bevar mrwondeful = ; // the only useful abstraction besides adding simple user managementvar opts = buffer: 'Contents of the file' 'utf-8' filename: 'useless.txt' headers: {} // optional; mrwondeful;