Last active
August 5, 2020 16:25
-
-
Save davidsharp/5a044c17a2d35d0ac253e0747b26aeb1 to your computer and use it in GitHub Desktop.
quick ngrok-powered folder zipper and sharer
This file contains hidden or 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
| #!/usr/bin/env /usr/local/bin/node | |
| const { exec } = require('child_process'); | |
| exec('mkdir nzip-temp') | |
| exec('zip -r nzip-temp/nzip '+process.argv[2]) | |
| exec('npx servor nzip-temp 8080') | |
| exec('~/ngrok http 8080') | |
| exec('open http://127.0.0.1:4040') | |
| exec('rm -rf nzip-temp') |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on my previous
nquik.jsgist: https://gist.github.com/davidsharp/b039a0e93643c5e0acb8cc64aefa51ec