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

@medable/mdctl-import-adapter

Package Overview
Dependencies
Maintainers
8
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@medable/mdctl-import-adapter

Medable Developer Client Tools :: Import Adapter

  • 1.0.71-alpha.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
85
increased by8.97%
Maintainers
8
Weekly downloads
 
Created
Source

mdctl-import-adapter

Developer Tools Import Adapter for Medable

This module will let you import Org configurations from an exported tree layout.

Usage

const ImportFileTreeAdapter = require('@medable/mdctl-import-adapter'),
      adapter = new ImportFileTreeAdapter('/documents/exported_folder'),
      iter = adapter.iterator[Symbol.asyncIterator]()
      
let item = await iter.next()
while(!item.done){      
  console.log(item.value)
  item = await iter.next()
}

// Get all blobs items

const { blobs } = adapter
if (blobs.length) {
  blobs.forEach((b) => {
    adapter.getAssetStream(b).on('data', (d) => {
      console.log(d)
    }).on('end', () => {
      console.log('end blob item')
    })
    blobs.pop()
  })
}

FAQs

Package last updated on 07 Aug 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