adpx-conversion-tester
v1.0.0
Published
Extract printable strings from .adpx binary files
Readme
ADPX Conversion Tester
Extracts printable strings from .adpx binary files, similar
to the Unix strings utility. Since .adpx is a custom binary
format, this scans for runs of printable ASCII and UTF-16LE characters rather
than parsing a specific structure.
Install
npm installCLI usage
node bin/cli.js path/to/file.adpx
node bin/cli.js path/to/file.adpx --json
node bin/cli.js path/to/file.adpx --offsets --min-length=6 --encoding=asciiOr, after npm link:
adpx-strings path/to/file.adpxOptions:
--min-length=<n>minimum run length to report (default:4)--encoding=<ascii|utf16le|both>which encodings to scan for (default:both)--jsonoutput as a JSON array ({ offset, length, encoding, text })--offsetsinclude byte offset/encoding in plain-text output
Programmatic usage
const { parseAdpxFile, extractStrings } = require('adpx-string-extractor');
// from a file path
const strings = parseAdpxFile('path/to/file.adpx', { minLength: 4 });
// strings: [{ offset, length, encoding, text }, ...]
// from an existing Buffer
const list = extractStrings(buffer, { minLength: 4, encoding: 'both' });
const justText = list.map((s) => s.text);Test
npm test