const jks = require('jks-js');
const fs = require('fs')
const keystore = jks.toPem(
fs.readFileSync('./key.jks'),
'xxxxxxxxxx'
);
results in
Error: Something went wrong with algorithm 1.2.804.2.1.1.1.1.3.1.1. For more details see 'error.context'
at Function.parseKey (.../node_modules/jks-js/lib/encryption/PKCS8Key.js:40:18)