pkgsource
v1.8.1
Published
Find the source of an npm package in an instant.
Readme
pkgsource 
Find (almost) every npm package's repository in an instant.
Usage
Visit pkgsource.xyz/{packageName} in your web browser, e.g. pkgsource.xyz/nock.
Get the repository for a specific version
Visit pkgsource.xyz/{packageName}@{version} in your web browser, e.g. pkgsource.xyz/[email protected]. This also works with npm tags, e.g. pkgsource.xyz/typescript@beta
If no version is specified, the latest version is assumed.
Get the raw data
Visit pkgsource.xyz/{packageName}?raw in your web browser, e.g. pkgsource.xyz/commander?raw.
Get source code for a specific version
Visit pkgsource.xyz/{packageName}?unpkg in your web browser, e.g. pkgsource.xyz/[email protected]?unpkg. You can use the same features (raw, version, tags) as mentioned above.
Server usage
Docker
docker run -p 4000:4000 ffflorian/pkgsourceLocal
Prerequisites:
Start the server in development mode
yarn
yarn start:devStart the server in production mode
yarn
yarn dist
yarn startSwagger UI
Open /_swagger-ui in the browser to try it out.
