node-samba-client
Nodejs smb-unix-client wrapper for smbclient
Fork of samba-client on 2020-01-01 at version 3.0.0
Requirements
Requires Node.js 10+ Smbclient must be installed. This can be installed on
- Ubuntu with
sudo apt-get install smbclient
. - Centos with
sudo yum install smbclient
.
Testing with smblient 4.9.1
API
const SambaClient = ; const client = address: '//server/share' // required (Can use '\\\\server\\share' syntax) username: 'test' // not required, defaults to guest password: 'test' // not required domain: 'WORKGROUP' // not required port: 8080 // not required encrypt: true; // send a fileawait client; // get a fileawait client;