Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amaui/aws

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amaui/aws

AWS utils

  • 1.1.20
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

amaui logo

amaui AWS

AWS


MIT license     Production ready     100% test cov     Nodejs

Very simple code     Modern code     Junior friendly     Typescript     Made with :yellow_heart:


Getting started

Add

  yarn add @amaui/aws

Add @aws-sdk/client-s3 peer dependency.

  yarn add @aws-sdk/client-s3

Use

  import AmauiAws from '@amaui/aws';

  // Make if you wanna a config file and
  // inside of it add all the process.env related props
  import Config from './config';

  // Make a new aws instance
  const amauiAws = new AmauiAws({
    s3: {
      bucketName: Config.aws.s3.bucketName,

      credentials: {
        accessKeyId: Config.aws.s3.accessKeyId,
        secretAccessKey: Config.aws.s3.secretAccessKey
      },

      endpoint: Config.aws.s3.endpoint,

      region: Config.aws.s3.region
    }
  });

  // Add
  await amauiAws.s3.add('a', 4);

  // Get
  await amauiAws.s3.get('a');

  // 4

  // Remove
  await amauiAws.s3.remove('a');

  await amauiAws.s3.get('a');

  // undefined

Dev

Install

  yarn

Test

  yarn test
One time local setup

Install docker and docker-compose

Install aws

Make docker containers

  yarn docker

Prod

Build

  yarn build

Keywords

FAQs

Package last updated on 27 Mar 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc