How to use @nearform/bubbleprof - 2 common examples

To help you get started, we’ve selected a few @nearform/bubbleprof examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nearform / node-clinic / bin.js View on Github external
printVersion(version)
    } else if (args.help) {
      printHelp('clinic-flame', version)
    } else if (args['visualize-only'] || args['--'].length > 1) {
      await trackTool('flame', args, version)
      await runTool(args, require('@nearform/flame'), version, { color: 'yellow' })
    } else {
      printHelp('clinic-flame', version)
      process.exit(1)
    }
  }))
  .parse(xargv(process.argv.slice(2)))

// not `clinic doctor`, `clinic flame`, and not `clinic bubbleprof`
if (result !== null) {
  const version = require('./package.json').version
  const args = minimist(process.argv.slice(1), {
    alias: {
      help: 'h',
      version: 'v'
    },
    boolean: [
      'help',
      'version'
    ]
  })

  if (args.version) {
    printVersion(version)
  } else if (args.help) {
    printHelp('clinic', version)
  } else {
github nearform / node-clinic / bin.js View on Github external
.register('doctor', catchify(async function (argv) {
    const version = require('@nearform/doctor/package.json').version
    const args = subarg(argv, {
      alias: {
        help: 'h',
        version: 'v'
      },
      boolean: [
        'upload',
        'help',
        'version',
        'collect-only',
        'open',
        'debug'
      ],
      string: [
        'server',
        'visualize-only',

@nearform/bubbleprof

Programmable interface to Clinic.js Bubbleprof

MIT
Latest version published 3 years ago

Package Health Score

50 / 100
Full package analysis

Popular @nearform/bubbleprof functions

Similar packages