![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@voodoo.io/aws-utils
Advanced tools
Simple wrapper around aws-sdk to make it easier to use.
/!\ This module use async/await syntax, this is why you must have node 7.6+.
Supported and tested : >= 7.6
Version | Supported | Tested |
---|---|---|
10.x | yes | yes |
9.x | yes | yes |
8.x | yes | yes |
>= 7.6 | yes | yes |
$ npm install @voodoo.io/aws-utils --save
const awsUtils = require('@voodoo.io/aws-utils').dynamo;
const aws = require('aws-sdk');
aws.config.update({region: 'eu-west-1'});
const dynamoCli = new aws.DynamoDB.DocumentClient();
const dynamoTools = new awsUtils(dynamoCli)
const res = await dynamoTools.queryHashKey('myTable', 'key', 'value');
const res = await dynamoTools.scan('myTable');
const res = await dynamoTools.putItem('myTable', {'key': 'value'});
dynamoTable
: table's namehashKeyName
: hashkey's namehashKeyValue
: hashkey's valueexclusiveStartKey
: (optional) start search at a specific keydynamoTable
: table's nameitem
: item to insertdynamoTable
: table's namehashKeyName
: (optional) hashkey's namehashKeyValue
: (optional) hashkey's valueexclusiveStartKey
: (optional) start search at a specific keyIf no hashkey is provided it returns the full table.
const awsUtils = require('@voodoo.io/aws-utils').secretManager;
const aws = require('aws-sdk');
aws.config.update({region: 'eu-west-1'});
const cli = new aws.SecretsManager({});
const secretManagerTools = new awsUtils(cli);
const res = await secretManagerTools.getSecretValue('secret');
secret
: secret's idconst awsUtils = require('@voodoo.io/aws-utils').s3;
const aws = require('aws-sdk');
aws.config.update({region: 'eu-west-1'});
const cli = new aws.S3();
const s3Tools = new awsUtils(cli);
const res = await s3Tools.getObject('bucket', 'key');
bucket
: bucket's namekey
: path to the ressource (/path/file.json)const res = await s3Tools.putJsonObject('bucket', 'key', {"key": "value"});
bucket
: bucket's namekey
: path to the ressource (/path/file.json)item
: json object to save on S3$ npm test
Coverage report can be found in coverage/.
FAQs
AWS utils methods - using homemade retry system
The npm package @voodoo.io/aws-utils receives a total of 76 weekly downloads. As such, @voodoo.io/aws-utils popularity was classified as not popular.
We found that @voodoo.io/aws-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.