Responsible for fetching and storing npm packages and is accessible at /fragments/scope$name@version
. Requests to these packages are returned in a fragment format, where body will be a rendered HTML and a X-Link header which may contain multiple fragment-script
and stylesheet
.
Default: 3000
Port which the server listens on.
Default: https://registry.npmjs.org
Url specifying an alternative or private registry to fetch packages from.
Default: undefined
Access token used if registry is private or needs additional permissions.
DEFAULT: false
Flag allowing usage of @latest
as version tag. This will generate a new request to the registry each time, then checking cache. Not recommended in production.
Default: undefined
List of patterns following regular expression rules separated by comma without start and end slash, that should be included. If omitted all packages will be included, if not explicitly excluded.
Default: undefined
List of patterns following regular expression rules separated by comma without start and end slash, that should be excluded. Takes precedence over INCLUDE. If omitted all packages will be included.
Default: undefined
List of patterns following minimatch rules separated by comma, that should be included. If omitted all files will be included, if not explicitly excluded.
Default: undefined
List of patterns following minimatch rules separated by comma, that should be excluded. Takes precedence over INCLUDE_FILES. If omitted all files will be included.
Default: debug
Global log level.
Default: undefined
Azure storage account name for logging to azure tables. If not defined no logs are written to azure.
Default: undefined
Azure storage account access key for logging to azure tables.
Default: fragmentgateway
Azure storage account logging table name.