@miguel-cagide/smb2
TypeScript icon, indicating that this package has built-in type declarations

0.6.3 • Public • Published

@miguel-cagide/smb2

A SMB2 implementation in TypeScript.

Forked from https://github.com/ardean/smb2 using code from https://github.com/SamDecrock/node-http-ntlm to fix Node 17+ OpenSSL error to prevent having to use legacy support.

Installation

$ npm i @miguel-cagide/smb2

Usage

import smb2 from "@miguel-cagide/smb2";

const client = new smb2.Client(host);
const session = await client.authenticate({
  domain,
  username,
  password
});
const tree = await session.connectTree(share);

const entries = await tree.readDirectory("/");
console.log(entries);

Features

Client

  • watch shares for file and directory changes
  • create, read & remove & rename files
  • create, list & remove & rename directories
  • check directory/file exists

WIP

  • SMB
  • Server

License

MIT

Package Sidebar

Install

npm i @miguel-cagide/smb2

Weekly Downloads

47

Version

0.6.3

License

MIT

Unpacked Size

180 kB

Total Files

145

Last publish

Collaborators

  • miguel-cagide