1.1.0 • Published 12 months ago

scm-extractor v1.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
12 months ago

scm-extractor

A pure JS library to extract the underlying CHK file from StarCraft 1 scenarios files.

Build Status NPM

NPM

Usage

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.

Example

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...
  }))

See also

For a pure JS CHK parsing solution, see bw-chk.

License

MIT

1.1.0

12 months ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago