1pux-to-csv
Version:
Convert 1Password .1pux files to .csv
22 lines (21 loc) • 801 B
TypeScript
/// <reference types="node" />
import { OnePuxData, OnePuxItem, OnePuxExport } from './types';
export declare const parse1PuxFile: (fileContents: string | Buffer | Uint8Array) => Promise<OnePuxExport>;
declare type RowData = {
name: string;
tags: string;
url: string;
username: string;
password: string;
notes: string;
extraFields: ExtraField[];
};
declare type ExtraFieldType = 'username' | 'password' | 'url' | 'email' | 'date' | 'month' | 'credit' | 'phone' | 'totp' | 'text';
declare type ExtraField = {
name: string;
value: string;
type: ExtraFieldType;
};
export declare const parseToRowData: (item: OnePuxItem['item'], defaultTags?: string[]) => RowData;
export declare const convert1PuxDataToCSV: (onePuxData: OnePuxData) => Promise<string>;
export {};