scm-extractor
Extractor for SCM/SCX files (Starcraft 1 maps).
Last updated 4 years ago by tec27 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install scm-extractor 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.6                                ...           latest (4 years ago)

7 Versions

  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |