Socket
Socket
Sign inDemoInstall

@medable/mdctl-import-adapter

Package Overview
Dependencies
317
Maintainers
8
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @medable/mdctl-import-adapter

Medable Developer Client Tools :: Import Adapter


Version published
Weekly downloads
786
increased by22.62%
Maintainers
8
Created
Weekly downloads
 

Readme

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

Last updated on 14 Aug 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