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

@medable/mdctl-api

Package Overview
Dependencies
Maintainers
8
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@medable/mdctl-api

Medable Developer Client Tools :: API

  • 1.0.71
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
295
increased by32.88%
Maintainers
8
Weekly downloads
 
Created
Source

mdctl-api

Developer Tools Api module

Usage

  • Client

You can use any credential provider into the credentials object param. such as keychain, keychain or memory

client = new Client({
            strictSSL: false,
            environment: {
              endpoint: 'https://localhost',
              env: 'test'
            },
            credentials: {
              type: 'password',
              apiKey: 'abcdefghijklmnopqrstuv',
              username: 'test@medable.com',
              password: 'password'
            }
          })

If you don't send that information it will try to find these credentials automatically.

  • Environment

Environment is a wrapper for calling import/export endpoints.

Environment.export({
    client,
    stream,
    dir: [location to export data],
    format: 'yaml'
})
Environment.import({
  client,
  gzip: true, //will send the stream into gzip format
  dir: [location to load data],
  format: 'yaml',
  progress: (line) => {
    console.log(line) //here you will see what is going to be sent
  }
})

FAQs

Package last updated on 18 Oct 2023

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