Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/buffers

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/buffers - npm Package Compare versions

Comparing version 0.1.31 to 0.1.32

4

buffers/index.d.ts

@@ -8,6 +8,4 @@ // Type definitions for buffers 0.1.1

interface BuffersStatics {
new (bufs?: Buffer[] | Buffers): Buffers;
new(bufs?: Buffer[] | Buffers): Buffers;
(bufs?: Buffer[] | Buffers): Buffers;

@@ -14,0 +12,0 @@ prototype: Buffers;

{
"name": "@types/buffers",
"version": "0.1.31",
"version": "0.1.32",
"description": "TypeScript definitions for buffers",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/buffers",
"license": "MIT",

@@ -9,9 +10,12 @@ "contributors": [

"name": "Robert Hencke",
"url": "https://github.com/rhencke"
"url": "https://github.com/rhencke",
"githubUsername": "rhencke"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/buffers"
},

@@ -22,4 +26,4 @@ "scripts": {},

},
"typesPublisherContentHash": "c4a577e5b5dd91b526ff140b3a1421b70b4f582afd927605066eff96187e09c9",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "c452524aeaaed56c1db825db637151d990011a76ebe8526d94b97816db06e35d",
"typeScriptVersion": "4.5"
}

@@ -8,10 +8,46 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/buffers
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/buffers.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/buffers/index.d.ts)
````ts
// Type definitions for buffers 0.1.1
// Project: https://github.com/substack/node-buffers
// Definitions by: Robert Hencke <https://github.com/rhencke>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Mon, 21 Aug 2017 21:49:18 GMT
* Dependencies: node
/// <reference types="node"/>
interface BuffersStatics {
new(bufs?: Buffer[] | Buffers): Buffers;
(bufs?: Buffer[] | Buffers): Buffers;
prototype: Buffers;
}
interface Buffers {
buffers: Buffer[];
length: number;
push(...items: Buffer[]): number;
unshift(...items: Buffer[]): number;
slice(i?: number, j?: number): Buffer;
splice(i: number, howMany?: number, ...items: Buffer[]): Buffers;
copy(dst: Buffer, dstStart?: number, start?: number, end?: number): number;
get(i: number): any;
set(i: number, b: any): void;
indexOf(needle: string | Buffer, offset?: number): number;
toBuffer(): Buffer;
toString(encoding?: any, start?: number, end?: number): string;
}
declare var Buffers: BuffersStatics;
export = Buffers;
````
### Additional Details
* Last updated: Fri, 15 Sep 2023 19:06:48 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by Robert Hencke <https://github.com/rhencke>.
These definitions were written by [Robert Hencke](https://github.com/rhencke).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc