Minor cleanup to npm registry mock

This commit is contained in:
Daniel
2021-02-17 12:29:01 +01:00
committed by Daniel Hutzel
parent 28402c58b3
commit b6f3914d79
3 changed files with 3 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ const app = express()
const { PORT=4444 } = process.env
const [,,port=PORT] = process.argv
process.cwd(__dirname)
app.use('/-/:tarball', (req,res,next) => {
const url = decodeURIComponent(req.url)