Skip to content

Instantly share code, notes, and snippets.

@E314c
Created April 6, 2018 15:52
Show Gist options
  • Save E314c/bb735e04b86103831dd61e05a2eee15f to your computer and use it in GitHub Desktop.
Save E314c/bb735e04b86103831dd61e05a2eee15f to your computer and use it in GitHub Desktop.
one line express static server. (needs `express` installed)
x=require('express');x().use(x.static(__dirname)).listen(3200,()=>console.log('listening on 3200'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment