pkgsource

1.8.1 • Public • Published

pkgsource Build Status

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/lodash@4.17.15. 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/express@4.17.1?unpkg. You can use the same features (raw, version, tags) as mentioned above.

Server usage

Docker

docker run -p 4000:4000 ffflorian/pkgsource

Local

Prerequisites:

Start the server in development mode

yarn
yarn start:dev

Start the server in production mode

yarn
yarn dist
yarn start

Swagger UI

Open /_swagger-ui in the browser to try it out.

Readme

Keywords

Package Sidebar

Install

npm i pkgsource

Weekly Downloads

1

Version

1.8.1

License

GPL-3.0

Unpacked Size

93.8 kB

Total Files

43

Last publish

Collaborators

  • ffflorian