@joinsrl/samba-client

2.1.5 • Public • Published

node-samba-client

Node.js wrapper for smbclient

Requirements

Smbclient must be installed. This can be installed on OSX with Homebrew using this script and on Ubuntu with sudo apt-get install smbclient.

API

var SambaClient = require('samba-client');

var client = new SambaClient({
  address: '//server/folder', // required
  username: 'test', // not required, defaults to guest
  password: 'test', // not required
  domain: 'WORKGROUP' // not required
});

// send a file
client.sendFile('somePath/file', 'destinationFolder/name', function(err) {});

// get a file
client.getFile('someRemotePath/file', 'destinationFolder/name', function(err) {})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.5
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.5
    2
  • 2.1.4
    1
  • 2.1.3
    0
  • 2.1.1
    0

Package Sidebar

Install

npm i @joinsrl/samba-client

Weekly Downloads

3

Version

2.1.5

License

MIT

Unpacked Size

8.07 kB

Total Files

5

Last publish

Collaborators

  • ezprint