2.0.4 • Published 6 months ago

@types/bencode v2.0.4

Weekly downloads
585
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/bencode

Summary

This package contains type definitions for bencode (https://github.com/themasch/node-bencode#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bencode.

index.d.ts

// Type definitions for bencode 2.0
// Project: https://github.com/themasch/node-bencode#readme
// Definitions by: Tobenna <https://github.com/tobenna>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

export function byteLength(value: any): number;
export function encodingLength(value: any): number;
export function encode(data: any, buffer?: Buffer, offset?: number): Buffer;
export function decode(data: Buffer, encoding?: string): any;
export function decode(data: Buffer, start?: number, encoding?: string): any;
export function decode(
    data: Buffer,
    start?: number,
    end?: number,
    encoding?: string
): any;

Additional Details

  • Last updated: Tue, 14 Sep 2021 21:01:30 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Tobenna.