git ssb

0+

wanderer🌟 / js-primea-wasm-container



Tree: 4af0630e844fe5c816f308e0ce8210d97c227951

Files: 4af0630e844fe5c816f308e0ce8210d97c227951 / tests / buildTests.js

350 bytesRaw
1const wast2wasm = require('wast2wasm')
2const fs = require('fs')
3
4const files = fs.readdirSync(`${__dirname}/wast`)
5for (let file of files) {
6 const wast = fs.readFileSync(`${__dirname}/wast/${file}`).toString()
7 wast2wasm(wast).then(wasm => {
8 file = file.split('.')[0]
9 fs.writeFileSync(`${__dirname}/wasm/${file}.wasm`, wasm.buffer)
10 })
11}
12

Built with git-ssb-web