smb-unix-client

3.2.0 • Public • Published

node-samba-client

GitHub package.json version GitHub issues GitHub last commit

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 = require('smb-unix-client');
 
const client = new SambaClient({
    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 file
await client.sendFile('somePath/file', 'destinationFolder\\name');
 
// get a file
await client.getFile('someRemotePath\\file', 'destinationFolder/name');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.2.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.2.0
    1
  • 3.1.0
    0
  • 3.0.2
    0
  • 3.0.1
    0

Package Sidebar

Install

npm i smb-unix-client

Weekly Downloads

1

Version

3.2.0

License

MIT

Unpacked Size

13.2 kB

Total Files

6

Last publish

Collaborators

  • mephisto64