Socket
Socket
Sign inDemoInstall

aws-credentials

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aws-credentials

Load AWS credentials from ENV/filesystem.


Version published
Weekly downloads
13
increased by160%
Maintainers
1
Install size
4.24 kB
Created
Weekly downloads
 

Readme

Source

aws-credentials

Load AWS credential data from ENV/filesystem by cascading through several styles.

var awscreds = require('aws-credentials');
awscreds('mybucket', function(err, creds) {
  // prime knox
  knox.createClient(creds)
})

Specifically:

  • Looks for $AWS_CREDENTIAL_FILE
  • Looks for ~/.s3cmd
  • Looks for $AWS_ACCESS_KEY_ID/$AWS_SECRET_ACCESS_KEY

Knox

Want to cut a couple more lines of code out of your life? Try the knox shortcut.

awscreds.knox("mybucket", function(err, client){
  console.log(err || client);
});

You need the knox module installed for this to work.

Keywords

FAQs

Last updated on 14 Nov 2012

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc