Where must I include the require("twitter") code in my cordova application?
<p>I am trying to create a cross platform application using cordova, I am using the <a href="https://github.com/desmondmorris/node-twitter" rel="nofollow">https://github.com/desmondmorris/node-twitter</a> library for javascript. In my file file.js which I reference in my index.html, I have included:</p>

<pre><code>var Twitter = require('twitter');

    var client = new Twitter({
        consumer_key: '***',
        consumer_secret: '***',
        access_token_key: '***',
        access_token_secret: '***'
    });

    client.post('statuses/update', { status: 'Testing 123' }, function (error, tweet, response) {
        if (error) throw error;
        console.log(tweet);  // Tweet body. 
        console.log(response);  // Raw response object. 
    });
</code></pre>

<p>However, the java script console gives some errors from which:<strong>Uncaught ReferenceError: require is not defined</strong>.
I searched about it and learned that this is used in the server side. Therefore I was wondering how to execute this code. Where am I supposed to include it? How can it be called?</p>