I’ve heavily promoted nvm, a Node.js version manager, over the years. Having a tool to manage multiple versions of a language interpreter has been so useful, especially due to the complexity of Node.js package management.
One tip I like to give new developers is adding a
.nvmrc file to their repositories. The file contents is just a simple string representing the version of Node.js the project requires:
A project with this
.nvmrc is specifying that Node.js
v16 should be used. Any developer could then run
nvm use to download, install, and switch to that version. A
nvm install call would then install dependencies in line with that version.
Facebook Open Graph META Tags
It’s no secret that Facebook has become a major traffic driver for all types of websites. Nowadays even large corporations steer consumers toward their Facebook pages instead of the corporate websites directly. And of course there are Facebook “Like” and “Recommend” widgets on every website. One…
Page Visibility API
One event that’s always been lacking within the document is a signal for when the user is looking at a given tab, or another tab. When does the user switch off our site to look at something else? When do they come back?
Create a Spinning, Zooming Effect with CSS3
CSS Scoped Styles
There are plenty of awesome new attributes we’ve gotten during the HTML5 revolution: placeholder, download, hidden, and more. Each of these attributes provides us a different level of control over an element on the page, but there’s a new element attribute that allows…