Created
October 4, 2016 02:10
-
-
Save pawelgalazka/cf35c1a72b89d605c04dd9dfb428601c to your computer and use it in GitHub Desktop.
runjs tricks example (medium article)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { run } from 'runjs' | |
function log () { | |
} | |
export function start () { | |
run('http-server .', {async: true}).then((output) => { | |
log(output) | |
}).catch((error) => { | |
throw error | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment