git ssb

3+

cel / ssb-npm-registry



Commit 125f39126d641932fa6ea0bf4af24df471f727c0

Document bootstrap route and needShasum config

cel committed on 8/29/2018, 11:26:05 PM
Parent: bf2c8915dee53c4a685241c0b75ac581a663ae81

Files changed

README.mdchanged
README.mdView
@@ -46,8 +46,9 @@
4646 "host": "localhost",
4747 "port": 8043,
4848 "autoAuth": true,
4949 "fetchAll": true,
50 + "needShasum": false,
5051 "wsLink": "http://localhost:8989"
5152 }
5253 }
5354 ```
@@ -56,8 +57,9 @@
5657 - `config.npm.autoAuth`: whether to automatically update `~/.npmrc` to add
5758 - `config.npm.fetchAll`: whether to fetch blobs for all versions of a package,
5859 to populate package metadata, for a request to a `/<package>` path. Most npm
5960 clients require this. default is `true`
61 +- `config.npm.needShasum`: whether to fetch always calculate and send package shasums. Default is `false` but will always calculate the shasum in response to a request from `npm < v5`
6062 - `config.npm.wsLink`: URL for ssb-ws server that serves blobs, which the registry will link to. Default is to use HTTP and `config.host` (or `localhost`) and `config.ws.port` (or `8989`) to attempt to link to scuttlebot's local ssb-ws server.
6163
6264 ## API
6365
@@ -94,8 +96,12 @@
9496
9597 In addition to the npm registry routes, ssb-npm-registry's web server (and
9698 `respond` method) serve the following additional routes:
9799
100 +### `/-/bootstrap` - Bootstrap shell snippet
101 +
102 +Serves a shell script to for installing `ssb-npm-registry` and using it to install other `ssb-npm` packages by running in a bootstrap mode where it does not require running `scuttlebot`.
103 +
98104 ### `/-/prebuild/:name` - Prebuild blobs
99105
100106 `name` should be the name of a blob in the format
101107 `{name}-v{version}-{runtime}-v{abi}-{platform}{libc}-{arch}.tar.gz`.

Built with git-ssb-web