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

    0.3.2 • Public • Published

    @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 files
    • create, list & remove directories
    • check directory/file exists

    WIP

    • SMB
    • Server

    License

    MIT

    Install

    npm i @bulentv/smb2

    DownloadsWeekly Downloads

    16

    Version

    0.3.2

    License

    MIT

    Unpacked Size

    169 kB

    Total Files

    143

    Last publish

    Collaborators

    • bulentv