Using npm behind a corporate proxy

On a recent assignment, I needed to install npm behind a corporate proxy. I had already set the environment variables HTTP_PROXY and HTTPS_PROXY. Other command line utilities, like ruby gems, recognized these environment variables. Npm did not. After some googling, I found the following way to configure the proxy for npm. npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080 If you need to specify credentials, they can be passed in the url using the following syntax....

2013-06-14 · 1 min · Wil Boayue

Wtf Javascript type coercion

I recently came across the site wtfjs.com. It highlights some idiosyncrasies of the Javascript language. It’s worth a look, you’ll get a deeper understanding of the Javascript language. This entry submitted by @diogobaeder held my attention. The solution was not immediately obvious to me so I did some digging. Once I found the correct type coercion rules the result were logical. var foo = [0]; console.log(foo == foo); // true console....

2012-07-17 · 1 min · Wil Boayue