dynamodb-localhost
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -10,5 +10,6 @@ 'use strict'; | ||
var dynamodb = { | ||
install: function () { | ||
install: function (callback) { | ||
installer.install(config, function (msg) { | ||
console.log(msg); | ||
callback(); | ||
}); | ||
@@ -41,5 +42,6 @@ }, | ||
}, | ||
remove: function () { | ||
remove: function (callback) { | ||
utils.removeDir(config.setup.install_path, function () { | ||
console.log("Successfully removed dynamodb local!"); | ||
callback(); | ||
}); | ||
@@ -46,0 +48,0 @@ } |
{ | ||
"name": "dynamodb-localhost", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=4.0" |
@@ -30,3 +30,3 @@ dynamodb-localhost | ||
var dynamodbLocal = require("dynamodb-localhost"); | ||
dynamodbLocal.install(); /* All the other methods depends on this */ | ||
dynamodbLocal.install(); /* This is one time operation. Safe to execute multiple times which installs DynamoDB once. All the other methods depends on this. */ | ||
dynamodbLocal.start({port: 8000}); | ||
@@ -38,6 +38,6 @@ ``` | ||
``` | ||
install() To install DynamoDB Local for usage (This is one time operation unless execute remove) | ||
start(options) To start an instance of DynamoDB Local. More information about options shown in the coming section | ||
stop(port) To stop particular instance of DynamoDb Local running on an specified port | ||
remove() To remove DynamoDB Local instance | ||
install(callback) To install DynamoDB Local for usage (This is one time operation unless execute remove). 'callback' function is called after installation completes (or if already installed, immediately) | ||
start(options) To start an instance of DynamoDB Local. More information about options shown in the coming section | ||
stop(port) To stop particular instance of DynamoDb Local running on an specified port | ||
remove(callback) To remove DynamoDB Local instance. 'callback' function is called after removal complete. | ||
``` | ||
@@ -44,0 +44,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14685
189