You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP β†’
Socket
Book a DemoInstallSign in
Socket

jsii

Package Overview
Dependencies
Maintainers
3
Versions
2186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsii

[![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) [![All Contributors](https://img.shields.io/github/all-contributors/aws/jsii/main?label=%E2%9C%A8%20All%20Con

5.9.0
latest
v5.9-latest
Source
npmnpm
Version published
Weekly downloads
497K
3.83%
Maintainers
3
Weekly downloads
Β 
Created

What is jsii?

The jsii npm package is a tool that allows developers to write code in TypeScript and then use it in other programming languages such as Python, Java, and C#. It facilitates the creation of multi-language libraries by generating bindings for different languages from a single TypeScript codebase.

What are jsii's main functionalities?

TypeScript to Python

This feature allows you to write a class in TypeScript and then use it in Python by generating the necessary bindings.

const jsii = require('jsii');

// Define a TypeScript class
class HelloWorld {
  sayHello() {
    return 'Hello, world!';
  }
}

// Export the class using jsii
module.exports = { HelloWorld };

// In Python, you can now use the generated bindings
# from your_module import HelloWorld
# hello = HelloWorld()
# print(hello.sayHello())

TypeScript to Java

This feature allows you to write a class in TypeScript and then use it in Java by generating the necessary bindings.

const jsii = require('jsii');

// Define a TypeScript class
class Calculator {
  add(a, b) {
    return a + b;
  }
}

// Export the class using jsii
module.exports = { Calculator };

// In Java, you can now use the generated bindings
// Calculator calculator = new Calculator();
// int result = calculator.add(1, 2);
// System.out.println(result);

TypeScript to C#

This feature allows you to write a class in TypeScript and then use it in C# by generating the necessary bindings.

const jsii = require('jsii');

// Define a TypeScript class
class Greeter {
  greet(name) {
    return `Hello, ${name}!`;
  }
}

// Export the class using jsii
module.exports = { Greeter };

// In C#, you can now use the generated bindings
// Greeter greeter = new Greeter();
// string greeting = greeter.greet("World");
// Console.WriteLine(greeting);

Other packages similar to jsii

FAQs

Package last updated on 06 Aug 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.