UNPKG

@types/bencode

Version:
33 lines (26 loc) 1.1 kB
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bencode/index.d.ts) ````ts /// <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: Mon, 06 Nov 2023 22:41:04 GMT * Dependencies: [@types/node](https://npmjs.com/package/@types/node) # Credits These definitions were written by [Tobenna](https://github.com/tobenna).