UNPKG
dino
Version:
latest (0.3.5)
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
0.0.1
A simple DynamoDB object modeler for Node.js.
christophercliff/dino
dino
/
lib
/
connection.js
16 lines
(12 loc)
•
304 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var
AWS
=
require
(
'aws-sdk'
);
exports
.
client
=
new
AWS
.
DynamoDB
().
client
;
exports
.
create
=
function
(
options
) {
if
(!options) {
return
new
AWS
.
DynamoDB
().
client
; }
return
new
AWS
.
DynamoDB
({
credentials
: options,
region
: options.
region
}).
client
; };