Socket
Socket
Sign inDemoInstall

gpdb-widget

Package Overview
Dependencies
292
Maintainers
1
Versions
278
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gpdb-widget

GPDB widget react component


Version published
Maintainers
1
Created

Readme

Source

gpdb-widget

Try it on demo page

NPM JavaScript Style Guide

Install

npm install --save gpdb-widget

Usage

Read more about application, name owner and user contexts here

import React from 'react'

import { Widget, loadClient } from 'gpdb-widget'

const Example = () => {
  const applicationContext = { instanceSig: 'name-coach.com', typeSig: 'email_dns_name' }
  const nameOwnerContext = { signature: 'jon.snow@name-coach.com', email: 'jon.snow@name-coach.com'  }
  const userContext = { signature: 'jon.snow@name-coach.com' }

  const client = loadClient(
    {
      accessKeyId: process.env.REACT_APP_GPDB_ACCESS_KEY_ID,
      secretAccessKey: process.env.REACT_APP_GPDB_SECRET_ACCESS_KEY
    },
    applicationContext,
    nameOwnerContext,
    userContext
  )

  return <Widget client={client} name="Jon Snow" width={300} />
}

Development

Supported node version is >=12, but currently in CI we use 14.17.1 so this version is preferred

  1. Install dependencies:
       yarn install
    
  2. Run library in watch mode:
  yarn watch
  1. Run example app to use it in time:
  cd example && yarn install && yarn start

License

MIT © NameCoach

FAQs

Last updated on 31 Oct 2023

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