A service to help you find the repository for an npm package
yarn- install dependencies
yarn dev- start the dev server
Here is an overview of the file structure.
This is a development server used to mimic how the
/:pkg routes will be served on now. Since now will deploy
pkg.js as serverless lamdbas, this Node server is only used for local development.
This is a serverless function that handles requests to the
/:pkg route. The primary flows:
:pkgis found in the npm registry and it has a valid repository URL, then repo.now.sh will redirect you to the repository page.
- If there is an error (package not found, repository URL missing), then repo.now.sh will show you an error page with ways you can help.
Most of the business logic for the
/:pkg route lives in this directory and is required by