openethereum/js/wasm/ethkey/base64ify.js

6 lines
226 B
JavaScript
Raw Normal View History

const fs = require('fs');
const file = fs.readFileSync('./ethkey.opt.wasm', { encoding: 'base64' });
fs.writeFileSync('../../packages/api/local/ethkey/ethkey.wasm.js', `module.exports = new Buffer('${file}', 'base64');\n`);