Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@types/smb2

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Issues
File Explorer

Advanced tools

@types/smb2

TypeScript definitions for smb2

    0.2.2ts3.6ts3.7ts3.8ts3.9ts4.0ts4.1ts4.2ts4.3ts4.4ts4.5ts4.6ts4.7ts4.8latest

Version published
Maintainers
1
Yearly downloads
7,190
increased by143.23%

Weekly downloads

Readme

Source

Installation

npm install --save @types/smb2

Summary

This package contains type definitions for smb2 (https://github.com/bchelli/node-smb2).

Details

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

index.d.ts

// Type definitions for smb2 0.2 // Project: https://github.com/bchelli/node-smb2 // Definitions by: Nick Whitlock <https://github.com/eezstreet> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = SMB2; interface SMB2Options { share: string; domain: string; username: string; password: string; port?: number | undefined; packetConcurrency?: number | undefined; autoCloseTimeout?: number | undefined; } interface SMB2ReadFileOptions { encoding: string | null; } declare class SMB2 { constructor(options: SMB2Options); close(): void; exists(path: string, callback?: (error: unknown, exists: boolean) => void): void; rename(oldPath: string, newPath: string, callback?: (error: unknown) => void): void; readFile(fileName: string, options?: SMB2ReadFileOptions, callback?: (error: unknown, data: string) => void): void; readFile(fileName: string, callback?: (error: unknown, data: string) => void): void; writeFile(fileName: string, data: string, options?: SMB2ReadFileOptions, callback?: (error: unknown) => void): void; writeFile(fileName: string, data: string, callback?: (error: unknown) => void): void; unlink(fileName: string, callback?: (error: unknown) => void): void; readdir(dir: string, callback?: (error: unknown, files: string[]) => void): void; rmdir(dir: string, callback?: (error: unknown) => void): void; mkdir(dir: string, mode: string, callback?: (error: unknown) => void): void; mkdir(dir: string, callback?: (error: unknown) => void): void; }

Additional Details

  • Last updated: Fri, 09 Jul 2021 02:32:43 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Nick Whitlock.

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc