@juangm/samba-client
    TypeScript icon, indicating that this package has built-in type declarations

    1.8.0 • Public • Published

    Node-Samba-Client

    npm version

    Overview

    • node-samba-client is a wrapper for smbclient for linux systems to interact with SMB/CIFS file sharing protocol.

    Requirements

    • Requires Node.js 10+
    • Smbclient must be installed.
    • This can be installed on Ubuntu with sudo apt install smbclient.

    Installation

    Just run >>> npm install @juangm/samba-client

    Example (using Typescript)

        import { SambaClient } from '@juangm/samba-client'
    
        const config: SmbConfig = {
            address: '//server/folder',
            domain: 'WORKGROUP',
            username: 'guest',
            password: 'test'
            path: '...',
            others: '...',
        };
    
        const client = new SambaClient(config);
    
        // send a file
        await client.sendFile('somePath/file', 'destinationFolder/name');
    
        // get a file
        await client.getFile('someRemotePath/file', 'destinationFolder/name');

    Install

    npm i @juangm/samba-client

    DownloadsWeekly Downloads

    3

    Version

    1.8.0

    License

    MIT

    Unpacked Size

    8.71 kB

    Total Files

    7

    Last publish

    Collaborators

    • juangm