
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
java-remapper
Advanced tools
A lightweight JavaScript/TypeScript tool for parsing and applying Java class mappings. It supports multiple mapping formats and allows remapping of Java .class files in the browser or Node.js.
SRG/XSRGCSRG/TSRGTSRG v2ProGuardTiny v1Tiny v2.class files from obfuscated to deobfuscated names using mappingsnpm install java-remapper
import { detectMappingFormat } from "java-remapper";
const content = `
tiny\t2\t0\tnamed
c\texample/ClassName\tcom/example/MyClass
`;
const format = detectMappingFormat(content);
console.log(format); // Output: MappingFormat.TINY2
import { parseMappings, MappingFormat } from "java-remapper";
const mappingsContent = "..."; // Mapping file content
const mappings = parseMappings(MappingFormat.TINY2, mappingsContent);
.class filesimport { remap } from "java-remapper";
import fs from "fs";
const classBytes = fs.readFileSync("Example.class");
const newBytes = await remap(classBytes, mappings);
fs.writeFileSync("ExampleRemapped.class", newBytes);
import { MappingSet } from "java-remapper";
detectMappingFormat(content: string): MappingFormat | nullDetects the mapping format from content.
parseMappings(format: MappingFormat, content: string): MappingSetParses a mapping file into a MappingSet.
remap(b: Uint8Array, mappings: MappingSet): Promise<Uint8Array>Remaps a Java .class file byte array using the given mappings.
.class files, remap them individually, and repackage.This project is licensed under the MIT License.
FAQs
A JavaScript tool for remapping Java classes.
The npm package java-remapper receives a total of 1 weekly downloads. As such, java-remapper popularity was classified as not popular.
We found that java-remapper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.