A node wrapper for the fake_dynamo gem
A node.js wrapper for the fake_dynamo gem.
For testing purposes mainly - and just because magneto isn't quite as mature yet.
var fakeDynamoGem = require'fake-dynamo-gem'fakeDynamoGemif err throw err// We have now spawned fake_dynamo with the default settings (port 4567)// fakeDynamo is just a standard ChildProcess object// Kill it when we're done testing (will also kill on process exit)fakeDynamokill// Can also pass custom argsfakeDynamoGem'--port=1234' '--db=/tmp/fake_dynamo.fdb'if err throw errfakeDynamokill
Also provides a
nfakedynamo binary, which just delegates directly to
fake_dynamo with the given args/options (requires Ruby 1.9 I believe)
With npm do:
npm install fake-dynamo-gem