
Security News
VulnCon 2025: NVD Scraps Industry Consortium Plan, Raising Questions About Reform
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
java-class-tools
Advanced tools
Print all methods names
'use strict';
const { JavaClassFileReader } = require('java-class-tools');
const reader = new JavaClassFileReader();
const classFile = reader.read('path/to/file.class');
classFile.methods.forEach(md => {
/**
* Method name in constant-pool.
*
* https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.4.7
*/
const nameCpEntry = classFile.constant_pool[md.name_index];
// To utf-8 string
const name = String.fromCharCode.apply(null, nameCpEntry.bytes);
console.log(name);
});
FAQs
Read and write java class files in node or browser.
The npm package java-class-tools receives a total of 545 weekly downloads. As such, java-class-tools popularity was classified as not popular.
We found that java-class-tools demonstrated a not healthy version release cadence and project activity because the last version was released 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
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.
Product
Our redesigned Repositories page adds alert severity, filtering, and tabs for faster triage and clearer insights across all your projects.