We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use the jsii-rosetta.Rosetta function in jsii-rosetta

To help you get started, we’ve selected a few jsii-rosetta 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 aws / jsii / packages / jsii-pacmak / bin / jsii-pacmak.ts View on Github external
type: 'boolean',
      desc: 'Translate code samples on-the-fly if they can\'t be found in the samples tablet',
      default: true
    })
    .version(VERSION_DESC)
    .strict()
    .argv;

  logging.configure({ level: argv.verbose !== undefined ? argv.verbose : 0 });

  // Default to 4 threads in case of concurrency, good enough for most situations
  logging.debug('command line arguments:', argv);

  const timers = new Timers();

  const rosetta = new Rosetta({ liveConversion: argv['rosetta-translate-live'] });
  if (argv['rosetta-tablet']) {
    await rosetta.loadTabletFromFile(argv['rosetta-tablet']);
  }

  const modulesToPackage = await findJsiiModules(argv._, argv.recurse);
  logging.info(`Found ${modulesToPackage.length} modules to package`);
  if (modulesToPackage.length === 0) {
    logging.warn('Nothing to do');
    return;
  }

  if (argv.outdir) {
    for (const module of modulesToPackage) {
      module.outputDirectory = path.resolve(argv.outdir);
    }

jsii-rosetta

[![Join the chat at https://cdk.Dev](https://img.shields.io/static/v1?label=Slack&message=cdk.dev&color=brightgreen&logo=slack)](https://cdk.dev) [![Build Status](https://github.com/aws/jsii-rosetta/workflows/build/badge.svg)](https://github.com/aws/jsii-

Apache-2.0
Latest version published 2 days ago

Package Health Score

86 / 100
Full package analysis