@awo00/smb2
Version:
A SMB2 implementation in TypeScript
43 lines (31 loc) • 805 B
Markdown
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.
```sh
$ npm i @awo00/smb2
```
```ts
import smb2 from "@awo00/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);
```
- watch shares for file and directory changes
- create, read & remove & rename files
- create, list & remove & rename directories
- check directory/file exists
- SMB
- Server
[ ](LICENSE.md)
> A SMB2 implementation