https://github.com/vassbo/sav2json
Satisfactory .sav file to JSON converter
https://github.com/vassbo/sav2json
json satisfactory
Last synced: about 2 months ago
JSON representation
Satisfactory .sav file to JSON converter
- Host: GitHub
- URL: https://github.com/vassbo/sav2json
- Owner: vassbo
- Created: 2025-01-14T15:42:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-26T13:39:04.000Z (over 1 year ago)
- Last Synced: 2025-07-20T02:16:19.954Z (11 months ago)
- Topics: json, satisfactory
- Language: TypeScript
- Homepage: https://npmjs.com/package/sav2json
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Satisfactory .sav file to JSON converter
> Parses a Satisfactory 1.0 Save Binary File into a more readable JSON format
Works in nodejs and in the browser!
## Example node
```js
import parseFile from "sav2json"
const json = await parseFile(FILE_PATH_OR_BUFFER)
// further process the json...
```
By default the output will be trimmed of unnecessary parts, but you can pass `{trim: false}` in case you want to disable that.
## Example browser
```js
import parseFile from "sav2json"
// assumes a file input
document.getElementById("savinput").addEventListener("change", readFile)
async function readFile(e) {
const file = e.target.files[0]
const reader = new FileReader()
reader.onload = async (e) => {
const buffer = new Uint8Array(e.target.result)
const json = await parseFile(buffer)
// further process the json...
}
reader.readAsArrayBuffer(file)
}
```