Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sublime Text 2 - ExpressJS snippet
var express = require('express'),
app = express();
app.get('/', function(req, res) {
res.sendfile(__dirname + '/client/views/index.html');
app.listen(${1:this}, function() {
console.log('I\'m listening... on port ${2:snippet}');
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
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.