# [`firefox-session-export`][]
Export [Firefox][] [session][]s to plain text.
[`firefox-session-export`]: https://git.rcrnstn.net/rcrnstn/firefox-session-export
[Firefox]: https://en.wikipedia.org/wiki/Firefox
[session]: https://support.mozilla.org/kb/how-restore-browsing-session-backup#w_restoring-from-a-backup-file
## Requirements
All of these are packaged in [Debian][].
- [POSIX][]-compatible [shell][]
- [`lz4json`][]
- [`jq`][]
[Debian]: https://en.wikipedia.org/wiki/Debian
[POSIX]: https://en.wikipedia.org/wiki/POSIX
[shell]: https://en.wikipedia.org/wiki/Unix_shell
[`lz4json`]: https://github.com/andikleen/lz4json
[`jq`]: https://jqlang.org
## References
Relevant directories, files, and code in the [Firefox source][]:
- [`browser/components/sessionstore/`][]
- [`session.schema.json`][]: JSON schema used by session stores.
- [`SessionFile.sys.mjs` `SessionFileInternal.Paths`][]: JSON schema used by session stores.
[Firefox source]: https://github.com/mozilla-firefox/firefox
[`browser/components/sessionstore/`]: https://github.com/mozilla-firefox/firefox/blob/main/browser/components/sessionstore/
[`session.schema.json`]: https://github.com/mozilla-firefox/firefox/blob/FIREFOX_141_0_RELEASE/browser/components/sessionstore/session.schema.json
[`SessionFile.sys.mjs` `SessionFileInternal.Paths`]: https://github.com/mozilla-firefox/firefox/blob/FIREFOX_141_0_RELEASE/browser/components/sessionstore/SessionFile.sys.mjs#L69
## License
Licensed under the [ISC License][] unless otherwise noted, see the
[`LICENSE`][] file.
[ISC License]: https://choosealicense.com/licenses/isc
[`LICENSE`]: LICENSE