Permalink
Browse files

readme: change example style

  • Loading branch information...
1 parent acfc6b6 commit 4c9a3b5343ab3925fa5989d93ce031f640483bb4 @mscdex committed Aug 10, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
View
@@ -22,9 +22,9 @@ Examples
* Get a directory listing of the current (remote) working directory:
```javascript
- var FTPClient = require('ftp');
+ var Client = require('ftp');
- var c = new FTPClient();
+ var c = new Client();
c.on('ready', function() {
c.list(function(err, list) {
if (err) throw err;
@@ -39,10 +39,10 @@ Examples
* Download remote file 'foo.txt' and save it to the local file system:
```javascript
- var FTPClient = require('ftp');
+ var Client = require('ftp');
var fs = require('fs');
- var c = new FTPClient();
+ var c = new Client();
c.on('ready', function() {
c.get('foo.txt', function(err, stream) {
if (err) throw err;
@@ -57,10 +57,10 @@ Examples
* Upload local file 'foo.txt' to the server:
```javascript
- var FTPClient = require('ftp');
+ var Client = require('ftp');
var fs = require('fs');
- var c = new FTPClient();
+ var c = new Client();
c.on('ready', function() {
c.put('foo.txt', 'foo.remote-copy.txt', function(err) {
if (err) throw err;

0 comments on commit 4c9a3b5

Please sign in to comment.