How to use the cfb.find function in cfb

To help you get started, we’ve selected a few cfb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SheetJS / js-cfb / types / bin_cfb.ts View on Github external
program.args.slice(1).forEach((x: string) => {
		const data: X.CFB$Entry = X.find(cfb, x);
		if(!data) { console.error(x + ": file not found"); return; }
		if(data.type !== 2) { console.error(x + ": not a file"); return; }
		const idx = cfb.FileIndex.indexOf(data), path = cfb.FullPaths[idx];
		mkdirp(path.slice(0, path.lastIndexOf("/")));
		write(path, data);
	});
	exit(0);

cfb

Compound File Binary File Format extractor

Apache-2.0
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis