How to make a Curl call in node.js with arguments
<p>I am trying to make this curl request from a node module. not sure how to pass the arguments.</p>

<pre><code>curl -u myusername https://myusername.cloudant.com/_api/v2/monitoring/disk_use?cluster=myclustername&amp;format=json
</code></pre>

<p>so far I got the following code. I am using <code>node-libcurl</code> in hopes that it would be easy.</p>

<pre><code>    var Curl = require( 'node-libcurl' );
    var curl = new Curl();


    curl.setOpt( 'URL', 'myusername.cloudant.com/_api/v2/monitoring/disk_use?cluster=myclustername&amp;format=json' );

curl.on( 'end', function( statusCode, body, headers ) {

        console.info( statusCode );
        console.info( '---' );
        console.info( body );
        console.info( '---' );
        console.info( this.getInfo( 'TOTAL_TIME' ) );

        this.close();
    });
</code></pre>

<p>So I don't know how to pass the -u flag in the command. Thanks in advance any direction would be helpful.</p>