@stifani/smb2
v0.3.0
Published
A SMB2 implementation in TypeScript
Downloads
88
Maintainers
Readme
@stifani/smb2
A SMB2 implementation in TypeScript.
Installation
$ npm i @stifani/smb2
Usage
import smb2 from "@stifani/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