@types/libqp
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

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

/// <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: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Chris. Webster.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/libqp

Weekly Downloads

1,299

Version

1.1.3

License

MIT

Unpacked Size

4.43 kB

Total Files

5

Last publish

Collaborators

  • types