Skip to content

Instantly share code, notes, and snippets.

View TheMeaner0's full-sized avatar

TheMeaner_ TheMeaner0

View GitHub Profile
@TheMeaner0
TheMeaner0 / better_protonpass_to_keepassxc.js
Last active December 7, 2024 02:09 — forked from nikspyratos/protonpass_to_keepassxc.js
Proton Pass json export file -> KeePassXC import CSV
/*
* Fork of the original `proton_to_keepassxc.js` script by nikspyratos
* Original script: https://gist.github.com/nikspyratos/bd0b5ef05a4d82d2d0425cb4be9844db
*
* This fork fixed a bug with how Proton Pass stores usernames and emails in its JSON export.
* Proton Pass uses separate JSON tags for emails (`itemEmail`) and usernames (`itemUsername`).
* KeePassXC imports only the `itemUsername` field, which makes it so there might be missing data.
* the username is stored under the `itemEmail` tag instead.
*
* This fork fixes the bug in the original script by checking both tags and using one if the other is not available.