Skip to content

Instantly share code, notes, and snippets.

View blakmatrix's full-sized avatar
🧿
You may be gone tomorrow, but that doesn't mean that you weren't here today.

❤️ Farrin Reid blakmatrix

🧿
You may be gone tomorrow, but that doesn't mean that you weren't here today.
View GitHub Profile

Disclaimer: This is an unofficial post by a random person from the community. I am not an official representative of io.js. Want to ask a question? open an issue on the node-forward discussions repo

io.js - what you need to know

io-logo-substack

  • io is a fork of node v0.12 (the next stable version of node.js, currently unreleased)
  • io.js will be totally compatible with node.js
  • the people who created io.js are node core contributors who have different ideas on how to run the project
  • it is not a zero-sum game. many core contributors will help maintain both node.js and io.js
@eugeniy
eugeniy / www-redirect.coffee
Created September 5, 2011 22:38
Redirect domains starting with www to non-www ones in node.js, express and coffeescript
express = require 'express'
app = module.exports = express.createServer()
# redirect to a non-www domain
app.get '/*', (req, res, next) ->
if req.headers.host.match(/^www\./)?
res.redirect 'http://' + req.headers.host[4..] + req.url, 301
else next()