Skip to content
forked from ardean/smb2

A SMB2 implementation in TypeScript

License

Notifications You must be signed in to change notification settings

bulentv/smb2-ts

 
 

Repository files navigation

@bulentv/smb2

A SMB2 implementation in TypeScript.

Github Version NPM Version NPM Downloads License

Installation

$ npm i @bulentv/smb2

Usage

import smb2 from "@bulentv/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

About

A SMB2 implementation in TypeScript

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • TypeScript 100.0%