UNPKG

simple-server

Version:

Simple Server allows you to easily get a node.js static file server up and running anywhere anytime.

15 lines (12 loc) 192 B
#!/usr/bin/env node var dir, port process.argv.slice(2).forEach(function (arg) { var num = Number(arg) if (isNaN(num)) { dir = arg } else { port = num } }) require('./')(dir, port)