elflib
Version:
ELF file reader and writer
17 lines (16 loc) • 433 B
JavaScript
import { open } from './index.js';
import { debug } from './debug.js';
main(process.argv.slice(2)).then(null, console.error);
async function main(args) {
if (args.length) {
for (const program of args) {
const elf = await open(program);
console.log(debug(elf));
console.log('\n\n');
}
}
else {
console.log(`Usage: elflib [program]`);
}
}