openethereum/js-old/wasm/ethkey/base64ify.js
2017-10-17 16:09:43 +02:00

6 lines
221 B
JavaScript

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