s3-url-exists

1.0.3 • Public • Published

S3-URL-EXISTS

npm yarn node babel

About

S3 Url Exists is an abstraction package made to check if the key into the buckets is really exists and are public

Example

const S3UrlExists = require('s3-url-exists')
const options = {
  region: 'sa-east-1',
  bucket: 'bucket-name',
  key: 'file-name'
}
 
S3UrlExists(options)
  .then((result) => {
    /*
    * { status: true, url: 'https://s3-region.amazonaws.com/bucket-name/file-name' }
    */
  })
  .catch(err => {
    /*
    * Request Error
    */
  })

Readme

Keywords

Package Sidebar

Install

npm i s3-url-exists

Weekly Downloads

10

Version

1.0.3

License

MIT

Unpacked Size

121 kB

Total Files

12

Last publish

Collaborators

  • felipebarroscruz