github.com/gitbundle/modules@v0.0.0-20231025071548-85b91c5c3b01/packages/npm/metadata.go (about)

     1  // Copyright 2023 The GitBundle Inc. All rights reserved.
     2  // Copyright 2017 The Gitea Authors. All rights reserved.
     3  // Use of this source code is governed by a MIT-style
     4  // license that can be found in the LICENSE file.
     5  
     6  package npm
     7  
     8  // TagProperty is the name of the property for tag management
     9  const TagProperty = "npm.tag"
    10  
    11  // Metadata represents the metadata of a npm package
    12  type Metadata struct {
    13  	Scope                   string            `json:"scope,omitempty"`
    14  	Name                    string            `json:"name,omitempty"`
    15  	Description             string            `json:"description,omitempty"`
    16  	Author                  string            `json:"author,omitempty"`
    17  	License                 string            `json:"license,omitempty"`
    18  	ProjectURL              string            `json:"project_url,omitempty"`
    19  	Keywords                []string          `json:"keywords,omitempty"`
    20  	Dependencies            map[string]string `json:"dependencies,omitempty"`
    21  	DevelopmentDependencies map[string]string `json:"development_dependencies,omitempty"`
    22  	PeerDependencies        map[string]string `json:"peer_dependencies,omitempty"`
    23  	OptionalDependencies    map[string]string `json:"optional_dependencies,omitempty"`
    24  	Readme                  string            `json:"readme,omitempty"`
    25  }