JSPM

steam-acf2json

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 119
  • Score
    100M100P100Q76603F
  • License MIT

A parser for Steam's appmanifest .acf files.

Package Exports

  • steam-acf2json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (steam-acf2json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Steam Acf To Json

Function

  • decode(acfString)
const acfParser = require('steam-acf2json')
const fs = require('fs')

const testFile = fs.readFileSync('appworkshop_322330.acf', 'utf-8')
const decode = acfParser.decode(testFile)

console.log(JSON.stringify(decode, null, 2))
  • encode(obj)
fs.writeFileSync('test.acf', acfParser.encode(decode))
$ md5 appworkshop_322330.acf    
MD5 (appworkshop_322330.acf) = 6b8ef4994155e102b7f7c92361d34457

$ md5 test.acf              
MD5 (test.acf) = 6b8ef4994155e102b7f7c92361d34457