verdaccio-groupnames
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    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.

    Keywords

    none

    Install

    npm i verdaccio-groupnames

    DownloadsWeekly Downloads

    2

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    12.6 kB

    Total Files

    7

    Last publish

    Collaborators

    • martin31821