bjacobel / aws-sdk-umd

UMD wrapper for AWS JS SDK. Good for use with React Native.

Home Page:https://npmjs.com/package/aws-sdk-umd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aws-sdk-umd

Note:

The AWS SDK now natively supports being loaded with Webpack. See this GitHub issue for more details. This library is unmaintained, so if you use Webpack yourself I would suggest integrating aws-sdk@^2.6.0 in your build directly rather than through this library.

Exports the AWS SDK for Node.js as a UMD module. Drops the fs dependency so the Node version of the SDK can be used in the browser (or in React Native).

Use it

npm install --save aws-sdk-umd
// ES6 modules
import AWS from 'aws-sdk-umd';

// CommonJS modules
var AWS = require('aws-sdk-umd');

// AMD
require(['aws-sdk-umd'], function(AWS) {

Build it locally

npm install
npm run build

The library will be built and output in dist/aws-sdk-umd.js.

If you want a build that only contains certain services:

AWS_SERVICES=s3,dynamodb npm run build

Thanks

Thanks to Francois Ward for getting me started and Chris Radek for this post demoing the Webpack configuration.

License

MIT

About

UMD wrapper for AWS JS SDK. Good for use with React Native.

https://npmjs.com/package/aws-sdk-umd

License:MIT License


Languages

Language:JavaScript 100.0%