@medable/mdctl-sandbox
Medable Developer Tools :: Sandbox
Last updated 2 months ago by jamessas .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @medable/mdctl-sandbox 
SYNC missed versions from official npm registry.

mdctl-sandbox

Developer Tools Sandbox Module for Medable

This module will let you run scripts into the Medable's sandbox.

Usage

const { Client } = require('@medable/mdctl-api'),
      sandbox = require('@medable/mdctl-sandbox'),
      options = {
        client: new Client({
          strictSSL: false,
          environment: {
            endpoint: 'https://localhost',
            env: 'test'
          },
          credentials: {
            type: 'password',
            apiKey: 'abcdefghijklmnopqrstuv',
            username: 'test@medable.com',
            password: 'password'
          }
        }),
        stats: true,
        body: `
          const sum = (param1, param2) => {
            return param1 + param2
          }
          
          return sum(5,1)
        `,
        arguments: [],
        script: '',
        optimize: false,
        format: 'json'
      },
      response = {}

try {
  Object.assign(response, await sandbox.run(options))
} catch (e) {
  response.err = e.toJSON()
}

console.log(JSON.stringify(response))

Current Tags

  • 1.0.54                                ...           latest (2 months ago)

53 Versions

  • 1.0.54                                ...           2 months ago
  • 1.0.53                                ...           2 months ago
  • 1.0.52                                ...           3 months ago
  • 1.0.51                                ...           3 months ago
  • 1.0.50                                ...           3 months ago
  • 1.0.49                                ...           3 months ago
  • 1.0.48                                ...           3 months ago
  • 1.0.47                                ...           3 months ago
  • 1.0.46                                ...           4 months ago
  • 1.0.45                                ...           4 months ago
  • 1.0.44                                ...           4 months ago
  • 1.0.43                                ...           5 months ago
  • 1.0.42                                ...           5 months ago
  • 1.0.41                                ...           5 months ago
  • 1.0.40                                ...           5 months ago
  • 1.0.39                                ...           6 months ago
  • 1.0.38                                ...           6 months ago
  • 1.0.37                                ...           6 months ago
  • 1.0.36                                ...           6 months ago
  • 1.0.35                                ...           6 months ago
  • 1.0.34                                ...           7 months ago
  • 1.0.33                                ...           7 months ago
  • 1.0.32                                ...           7 months ago
  • 1.0.31                                ...           8 months ago
  • 1.0.30                                ...           8 months ago
  • 1.0.29                                ...           8 months ago
  • 1.0.28                                ...           9 months ago
  • 1.0.27                                ...           9 months ago
  • 1.0.26                                ...           9 months ago
  • 1.0.25                                ...           9 months ago
  • 1.0.24                                ...           9 months ago
  • 1.0.23                                ...           9 months ago
  • 1.0.22                                ...           10 months ago
  • 1.0.21                                ...           10 months ago
  • 1.0.20                                ...           a year ago
  • 1.0.19                                ...           a year ago
  • 1.0.18                                ...           a year ago
  • 1.0.17                                ...           a year ago
  • 1.0.16                                ...           a year ago
  • 1.0.15                                ...           a year ago
  • 1.0.14                                ...           a year ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.10                                ...           a year ago
  • 1.0.9                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 26
Dependencies (5)
Dev Dependencies (11)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |