Socket
Socket
Sign inDemoInstall

blend-state-dynamo

Package Overview
Dependencies
114
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    blend-state-dynamo

Amazon dynamodb integration for vigour-state


Version published
Weekly downloads
11
increased by83.33%
Maintainers
1
Install size
71.2 MB
Created
Weekly downloads
 

Readme

Source

blend-state-dynamo

dynamo - db integration for vigour-hub

Build Status js-standard-style npm version Coverage Status

state.set({
  inject: require('blend-state-dynamo')
  db: {
    id: AMAZON_ID,
    secret: AMAZON_SECRET,
    table: testTable
  },
  on: {
    error (err) {
      console.log(err)
    }
  }
})

state.db.hasTable.is(true).then(() => {
  console.log('got a table!')
})

Loading data

state.set({
  inject: require('blend-state-dynamo'),
  db: {
    id: AMAZON_ID,
    secret: AMAZON_SECRET,
    table: testTable
  }
})

state.db.load() // loads all data without context
state.db.load('somecontextid') // loads all data with somecontextid
state.db.load('*') //loads all data -- warn maybe very heavy

Keywords

FAQs

Last updated on 01 Dec 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc