- convert1pifToJSON(onePifRaw) ⇒
Object Convert raw 1pif text to a JSON tree
- createGroupSkeleton(id) ⇒
Object Create a new group skeleton
- mergeItemsToTree(groups, entries, [currentGroup])
Merge extracted groups and entries to form a tree
- onePasswordItemToEntry(rawItem) ⇒
Object|null Convert a 1password raw item to an entry object
- ButtercupImporter
Importer for Bitwarden vaults
Kind: inner class of ButtercupImporter
Create a new Bitwarden importer
| Param | Type | Description |
|---|---|---|
| data | String |
Raw JSON data of a Bitwarden vault export |
Importer for Buttercup CSV exports
Kind: inner class of ButtercupImporter
Create a new Buttercup CSV importer
| Param | Type | Description |
|---|---|---|
| csvData | String |
Raw CSV data of a Buttercup vault export |
Importer for Buttercup vaults
Kind: inner class of ButtercupImporter
Create a new Buttercup importer
| Param | Type | Description |
|---|---|---|
| sourceVault | Vault |
Source Buttercup vault |
Importer for CSV files
Kind: inner class of ButtercupImporter
Create a new CSV importer
| Param | Type | Default | Description |
|---|---|---|---|
| csvData | String |
The source CSV data | |
| [name] | String |
Untitled CSV import |
Name for the imported folder |
Importer for KeePass XML exports
Kind: inner class of ButtercupImporter
Create a new KeePass XML importer
| Param | Type | Description |
|---|---|---|
| xmlContent | String |
The XML content to import from |
Importer for LastPass CSV dumps
Kind: inner class of ButtercupImporter
Create a new LastPass importer
| Param | Type | Description |
|---|---|---|
| data | String |
Raw CSV data of a LastPass vault export |
Importer for 1Password vaults
Kind: inner class of ButtercupImporter
- ~OnePasswordImporter
- new OnePasswordImporter(onePIFData)
- .export() ⇒
Promise.<Vault>
Constructor for the importer
| Param | Type | Description |
|---|---|---|
| onePIFData | String |
1pif file data |
Export the 1pif data to a Buttercup Vault instance
Kind: instance method of OnePasswordImporter
Returns: Promise.<Vault> - A promise that resolves with a Buttercup
Vault instance
Convert raw 1pif text to a JSON tree
Kind: global function
Returns: Object - Raw archive structure
| Param | Type | Description |
|---|---|---|
| onePifRaw | String |
Exported 1PIF content |
Create a new group skeleton
Kind: global function
Returns: Object - A group object
| Param | Type | Description |
|---|---|---|
| id | String | null |
The 1password group UUID |
Merge extracted groups and entries to form a tree
Kind: global function
| Param | Type | Description |
|---|---|---|
| groups | Object |
Groups key=>value list |
| entries | Object |
Entries key=>value list |
| [currentGroup] | Object |
The current object being worked on |
Convert a 1password raw item to an entry object
Kind: global function
Returns: Object | null - The converted entry object or null if invalid
| Param | Type | Description |
|---|---|---|
| rawItem | Object |
Extracted 1password item |