
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
aws-client
Advanced tools
Minimalist Node.js client for AWS services
Currently Supports:
npm install aws-client
If you are using any v1 functions (i.e. function name does not end in v2), then you must also install aws-sdk:
npm install aws-sdk
aws-client v2 functions do not require any additional imports as this package imports the required modular packages (new AWS SDK v3 feature). Eventually all v1 packages will migrate to aws-client v2
You can import one or many clients depending on what you need:
ES6 Import:
import { DynamoClient, SNSClient } from 'aws-client'
CommonJS:
const { DynamoClient, SNSClient } = require('aws-client')
const client = new DynamoClient({
region: 'eu-west-1',
tableName: 'users-prod'
})
const getUser = async (id) => {
const data = await client.get({ id })
console.log(data)
}
getUser('fred')
If there is a DynamoDB table called users-prod in your AWS account containing an item with the primary key (id) of 'fred', the above code will print it to the console.
FAQs
Minimalist Node.js client for AWS services
We found that aws-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.