A pure JS library to extract the underlying CHK file from StarCraft 1 scenarios files.
scm-extractor is a node.js Transform
stream. To use it, simply pipe SCM/SCX data into it, and pipe the output (CHK file data) somewhere useful.
import fs from 'fs'
import concat from 'concat-stream'
import createExtractor from 'scm-extractor'
fs.createReadStream(__dirname + '/Lost Temple.scm')
.pipe(createExtractor())
.pipe(concat(data => {
// do something with the CHK data here...
}))
For a pure JS CHK parsing solution, see bw-chk.
MIT