copyright | lastupdated | ||
---|---|---|---|
|
2016-11-22 |
{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:screen: .screen} {:codeblock: .codeblock} {:pre: .pre}
{: #mql_node}
To use the API, add a reference to the latest available {{site.data.keyword.mql}} client API for Node.js as follows:
Add the following reference to the dependency section of your package.json
file:
"mqlight" : "1.0.x"
{: codeblock}
And add the following require statement to your source file:
var mqlight = require(‘mqlight’);
{: codeblock}