Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// launch.js
var traceur = require('traceur');
traceur.require('site.js');
// site.js
var express = require('express');
var app = express();
app.get('/', (req, res) => res.send(getSalutation(req.query.name)));
function getSalutation(name = 'Anonymous') {
return `hello ${name}`;
}
console.log("Listening on 3131");
app.listen(3131);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.