1.1.3 • Published 2 years ago
@types/libqp v1.1.3
Installation
npm install --save @types/libqp
Summary
This package contains type definitions for libqp (https://github.com/nodemailer/libqp).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/libqp.
index.d.ts
// Type definitions for libqp 1.1
// Project: https://github.com/nodemailer/libqp
// Definitions by: Chris. Webster <https://github.com/webstech>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { Transform, TransformOptions } from "stream";
/** Encodes a Buffer or String into a Quoted-Printable encoded string */
export function encode(buffer: string | Buffer): string;
/** Decodes a Quoted-Printable encoded string to a Buffer object */
export function decode(input: string): Buffer;
/** Adds soft line breaks to a Quoted-Printable string */
export function wrap(str: string, lineLength?: number): string;
/** Extend options to add lineLength */
export interface EncoderOptions extends TransformOptions {
lineLength?: number | undefined;
}
/** Create a transform stream for encoding data to Quoted-Printable encoding */
export class Encoder extends Transform {
constructor(opts?: EncoderOptions);
}
/** Create a transform stream for decoding Quoted-Printable encoded strings */
export class Decoder extends Transform {
constructor(opts?: TransformOptions);
}
Additional Details
- Last updated: Thu, 08 Jul 2021 16:23:43 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Chris. Webster.