source/node/tools/export.js
function(archive) {
        return {
            type: "buttercup-archive",
            exported: Date.now(),
            format: archive.getFormat(),
            groups: archive.getGroups().map(group => group.toObject())
        };
    }
function(archive) {
        return {
            type: "buttercup-archive",
            exported: Date.now(),
            format: archive.getFormat(),
            groups: archive.getGroups().map(group => group.toObject())
        };
    }
function ( archive ) { return { type : "buttercup-archive" , exported : Date . now ( ) , format : archive . getFormat ( ) , groups : archive . getGroups ( ) . map ( group => group . toObject ( ) ) } ; }
Export an archive to Buttercup format
@param {Archive} archive The archive to export
@returns {Object} The exported object
Export an archive to Buttercup format