UNPKG

@jhinkle/gpg

Version:

GPG encryption and decryption in node.js by way of the gpg command-line tool

12 lines (11 loc) 529 B
/// <reference types="node" /> import { WriteStream } from "fs"; import { IGpgOptions, IStreamingOptions } from "./types"; /** * Wrapper around spawning GPG. Handles stdout, stderr, and default args. */ export declare const spawnGPG: (input: string, args: string[], gpgOptions?: IGpgOptions) => Promise<void | Buffer>; /** * Similar to spawnGPG, but sets up a read/write pipe to/from a stream. */ export declare const streaming: (options: IStreamingOptions, args: string[], gpgOptions?: IGpgOptions) => Promise<WriteStream>;