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