Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,35 @@ Examples
c.connect();
```

* Using your properties connections


```javascript
var Client = require('ftp');
var fs = require('fs');

var config = {
host: 'my-host',
port: 'my-port',
user: 'my-user',
password: 'my-password',
};
var options = {
logging: 'basic'
};
var c = new Client();

c.on('ready', function() {
c.list(function(err, list) {
if (err) throw err;
console.dir(list);
c.end();
});
});
// your properties of connection
c.connect(config,options);

```
API
===

Expand Down Expand Up @@ -139,7 +167,7 @@ Methods
* group - _string_ - An empty string or any combination of 'r', 'w', 'x'.

* other - _string_ - An empty string or any combination of 'r', 'w', 'x'.

* owner - _string_ - The user name or ID that this entry belongs to **(*NIX only)**.

* group - _string_ - The group name or ID that this entry belongs to **(*NIX only)**.
Expand Down