Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

g2-ops-config

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

g2-ops-config

To fetch and maintain cloud configs for different projects

  • 0.0.26
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
28
increased by833.33%
Maintainers
3
Weekly downloads
 
Created
Source

g2-ops-config

Goal

Centralized support for Cloud Config for Copart

API

  1. Standard API
import fetchConfigurations from 'g2-ops-config'

fetchConfigurations(APPLICATION, [PROFILE1, PROFILE2]).then((response) => console.log(response))

// Will Print
{
  [PROFILE1]: {}, // configurations for PROFILE1
  [PROFILE2]: {} // configurations for PROFILE1
}
  1. We will inject configurations into process when configuration begins with ENV-
// application.yaml
ENV:
  SESSION_ID = 'secret'
  BABEL_ENV = 'development'
import fetchConfigurations from 'g2-ops-config'

fetchConfigurations(APPLICATION, [PROFILE1, PROFILE2]).then((response) => console.log(response))

// Will Print
{
  [PROFILE1]: {}, // configurations for PROFILE1
  [PROFILE2]: {} // configurations for PROFILE1
}

// And also things are available on process
console.log(process.env.SESSION_ID) // should print 'secret'
console.log(process.env.BABEL_ENV) // should print 'development'

ISSUES

Please, report issues at: g2-ops-config

FAQs

Package last updated on 30 Apr 2020

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc