Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.
/ screp-js-file Public archive

Pure Javascript version of screp, a StarCraft: Remastered replay file parser - local filesystem version

License

Notifications You must be signed in to change notification settings

msikma/screp-js-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache 2.0 license npm version

screp-js-file

Warning

This project is deprecated, as I had trouble generating new versions and it's significantly slower than running the native binary. I recommend you use screp-ts instead.

A pure Javascript version of screp, a StarCraft: Remastered replay file parser, compiled from the original Go version using GopherJS.

screp (StarCraft: Brood War Replay Parser) is a library for extracting information from StarCraft replay files. This library uses a compiled version of the original library recompiled for Javascript. This specific library is designed to for use in Node on local files—if you need to parse file buffers directly or use screp in the browser, try screp-js.

Installation

This library can be installed through npm:

npm i --save screp-js-file

Usage

To use, run Screp.parseFile() on a path to a local file.

const Screp = require('screp-js-file')

const processRep(filepath) {
  try {
    const res = await Screp.parseFile(filepath)
    return res
  }
  catch (err) {
    // If something went wrong, 'err' will be an Error object containing a string thrown by Go.
    console.log(err)
  }
}

For more information, see the screp-js documentation.

Copyright

Apache License 2.0, as per the original screp project.

About

Pure Javascript version of screp, a StarCraft: Remastered replay file parser - local filesystem version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published