1.1.0 • Published 2 years ago

verdaccio-groupnames v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
2 years ago

npm version

verdaccio-groupnames

Verdaccio Plugin to handle $group in package access specifications

Installation

$ npm i -g verdaccio-groupnames

Configuration

# config.yaml

auth:
  groupnames: {}
  # Use other authentication plugins here.
packages:
  '@*/*':
    access: '$group'
    publish: '$group'
    unpublish:

The above configuration will allow access, when the user is a member of the scope of the npm package. For example, when user martin is member of group deinstapel, he has access to packages in @deinstapel/* but not to @company/*.

# config.yaml

auth:
  groupnames: {}
  # Use other authentication plugins here.
packages:
  '@company/*:
    access: 'fancyCompany-owner fancyCompany-employee'
    publish: 'fancyCompany-owner'
  '@*/*':
    access: '$group'
    publish: '$group'
    unpublish:

The above configuration will allow access to packages for @company whenever the user is member of fancyCompany-owner or fancyCompany-employee, but publish only to fancyCompany-owner. For all other scopes, access is granted when the scope name matches the group name.

1.1.0

2 years ago

1.0.4-1

5 years ago

1.0.4-0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago