@buttercup/exporter

Export Buttercup vaults

Stats

StarsIssuesVersionUpdatedCreatedSize
@buttercup/exporter
571.1.0a year ago3 years agoMinified + gzip package size for @buttercup/exporter in KB

Readme

Buttercup Exporter

Export Buttercup vaults

Build Status npm version

About

This library provides methods to allow you to export Buttercup vaults to CSV.

Install by running the following:

npm install @buttercup/exporter --save

Requires NodeJS 10 or later.

Usage

Require the exporter method and pass an archive instance to it:

const fs = require("fs");
const { Archive } = require("buttercup");
const { exportVaultToCSV } = require("@buttercup/exporter");

const archive = new Archive();
archive.createGroup("General")
    .createEntry("email")
        .setProperty("username", "test@mail.com")
        .setProperty("password", "passw0rd");

exportVaultToCSV(archive).then(csv => {
    fs.writeFileSync("./test.csv", csv);
});

exportVaultToCSV takes the vault instance as the only parameter and returns a Promise.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.