metadata

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package metadata defines aliases for backward compatibility with javascript/metadata.

Index

Constants

View Source
const (
	// Unknown is when the source of the NPM package is unknown because the lockfile was not found.
	Unknown = jsmeta.Unknown
	// PublicRegistry is the public NPM registry.
	PublicRegistry = jsmeta.PublicRegistry
	// Other is any other remote or private source (e.g. GitHub).
	Other = jsmeta.Other
	// Local is the local filesystem that stores the package versions.
	Local = jsmeta.Local
)

Variables

View Source
var (
	// PersonFromString parses a string of the form "name <email> (url)" into a Person struct.
	PersonFromString = jsmeta.PersonFromString
	// ToProto converts JavascriptPackageJSONMetadata to proto.
	ToProto = jsmeta.ToProto
	// ToStruct converts proto to JavascriptPackageJSONMetadata.
	ToStruct = jsmeta.ToStruct
)

Functions

This section is empty.

Types

type JavascriptPackageJSONMetadata

type JavascriptPackageJSONMetadata = jsmeta.JavascriptPackageMetadata

JavascriptPackageJSONMetadata is an alias for JavascriptPackageMetadata.

type NPMPackageSource added in v0.3.6

type NPMPackageSource = jsmeta.NPMPackageSource

NPMPackageSource is the source of the NPM package.

type Person

type Person = jsmeta.Person

Person represents a person field in a javascript package.json file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL