New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dinossauro

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dinossauro

Dinossauro is a simple way of running the last dynamodb-local version over node

0.0.7
latest
Source
npm
Version published
Maintainers
1
Created
Source

dinossauro

Dinossauro is a simple way of running the last dynamodb-local version over node

npm install dinossauro
// usage with mocha

const dinossauro = require('dinossauro');

describe('my acceptance test', () => {
  before(dinossauro.up);
  after(dinossauro.down);
});
// dinossauro.up returns a promise that will resolve when dynamo is ready
dinossauro.up()
  .then(dynoDbProcess => {
    // here you can do anything you want with the dynamo process
    dynoDbProcess.stdout.pipe(process.stdoud);
  });
// dinossauro.up accepts an options object parameter which is passed to dynamo
// the default values follow:
{
  port: 8000,
  inMemory: true,
  sharedDb: true
}

// if you pass an dbPath parameter then inMemory is automatically set to false
{
  dbPath: '/tmp/mydbfolder'
}

Keywords

dynamodb

FAQs

Package last updated on 12 Jun 2017

Did you know?

Socket

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.

Install

Related posts