mysql's createClient function is not working

I have installed mysql using npm intall mysql I am testing the following code and it is giving an error that TypeError: Object #<Object> has no method 'createClient'

var mysql  = require('mysql');
var client = mysql.createClient({
    user: 'user',
    password: 'abc'
});
client.query('USE databasenm');

Please help me in correcting the code

In the docs it says

var connection = mysql.createConnection({
  host     : 'localhost',
  user     : 'me',
  password : 'secret',
});

not createClient.

Reference: https://github.com/felixge/node-mysql

Where is the Host Name and use createConnection insteat of createClient.
For further details check this out : https://github.com/felixge/node-mysql#install