{"library":"j4ts","type":"library","category":null,"description":"j4ts is a partial translation of the Java standard library (JRE) to JavaScript, forked from GWT's Java emulation and transpiled via JSweet. This NPM package (j4ts) provides the generated JavaScript and TypeScript definitions for use in JavaScript/TypeScript projects. Currently at version 0.7.2, it targets JSweet v2 and requires at least Java 8. It offers core Java collections, utilities, and NIO-like buffers. The package is ESM-compatible since v0.7.x. Compared to other Java-to-JS solutions (e.g., GWT, CheerpJ), j4ts is lightweight and designed for gradual migration of Java code to TypeScript. Release cadence is irregular, driven by j4ts upstream.","language":"javascript","status":"active","version":"0.7.2","tags":["javascript","java","jre","jdk","jsweet","java to javascript","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install j4ts","imports":["import { ArrayList } from 'j4ts'","import { HashMap } from 'j4ts'","import { HashSet } from 'j4ts'","import { ArrayList } from 'j4ts'","import { Arrays } from 'j4ts'"]},{"cmd":"yarn add j4ts","imports":[]},{"cmd":"pnpm add j4ts","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/j4ts","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}