Faster npm

By  on  

Good news! npm was updated in January and this is no longer an issue!

npm is the premier package repository on the web and we all use it a ton, obviously.  npm has started using basic progress bar graphics to notify users of download progress, which is nice, but appears to slow down the entire process.  This tweet blew my mind:

Executing the following before an npm install dramatically speeds up the process:

npm set progress=false

You wont see a beautiful progress bar but you will get faster installs which, in my opinion, is an excellent trade off!

Recent Features

  • By
    CSS @supports

    Feature detection via JavaScript is a client side best practice and for all the right reasons, but unfortunately that same functionality hasn't been available within CSS.  What we end up doing is repeating the same properties multiple times with each browser prefix.  Yuck.  Another thing we...

  • By
    CSS 3D Folding Animation

    Google Plus provides loads of inspiration for front-end developers, especially when it comes to the CSS and JavaScript wonders they create. Last year I duplicated their incredible PhotoStack effect with both MooTools and pure CSS; this time I'm going to duplicate...

Incredible Demos

  • By
    Redacted Font

    Back when I created client websites, one of the many things that frustrated me was the initial design handoff.  It would always go like this: Work hard to incorporate client's ideas, dream up awesome design. Create said design, using Lorem Ipsum text Send initial design concept to the client...

  • By
    Do / Undo Functionality with MooTools

    We all know that do/undo functionality is a God send for word processing apps. I've used those terms so often that I think of JavaScript actions in terms of "do" an "undo." I've put together a proof of concept Do/Undo class with MooTools. The MooTools...

Discussion

  1. I think it’s worth mentioning that these settings are saved in a dotfile ~/.npmrc that can be backed up easily. Automating the machine setup ftw! :D

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!