- Minimum supported game version: 11.0
- Node.js 18 or newer is required.
- Deno/bun/browser environments may be supported, but I doesn't target them.
Node.js:
npm i scp-sl-logs-parser
Deno/Browser:
import { parse, parseFile } from 'https://esm.sh/scp-sl-logs-parser'
import { parse } from 'scp-sl-logs-parser'
parse(
'2021-11-15 14:34:14.981 +03:00 | Internal | Logger | Started logging. Game version: 11.0.0, private beta: NO.'
)
import { readFileSync } from 'node:fs'
import { parseFile } from 'scp-sl-logs-parser'
parseFile(readFileSync('log.txt'))