pantone({ hex:'#2A70AE'}, hexCallback)// you can also use `rgb` instead of `hex`

functionhexCallback(err,results){

if(err)thrownewError(err)

console.log(results)

}

Proxy settings

For all of you who are behind a proxy server we are using the process.env property from node to take the value from HTTP_PROXY or HTTPS_PROXY in order to make the call to the server. This means that you need to set those properties as environment variables (it's a good thing anyways because lots of other apps are using this property).

Windows

Right-click My Computer, and then click Properties.

Click the Advanced tab \ Advanced system settings.

Click Environment variables.

Under System variables Click New to add a new variable name and value.

Ubuntu (various Linux distributions)

Notice: I tested this on a VM locally and worked perfectly but might not work for you depending on various factors, so if you have more knowledge please submit a pull request, or let us know and we can update this readme file.

If you want to use a proxy server only once in one terminal window use this command:

export http_proxy=http://proxy-server.mycorp.com:8080

If you want a more permanent solution:

Put the environment variable into the global /etc/environment file:

http_proxy=http://proxy-server.mycorp.com:8080

Execute source /etc/environment in every shell where you want the variables to be updated: