pkgjson

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PkgJSON

type PkgJSON struct {
	Name             string            `json:"name"`
	Version          string            `json:"version"`
	Author           string            `json:"author"`
	Description      string            `json:"description"`
	Proxy            string            `json:"proxy"`
	Dependencies     map[string]string `json:"dependencies"`
	PeerDependencies map[string]string `json:"peerDependencies"`
	DevDependencies  map[string]string `json:"devDependencies"`
}

PkgJSON represents a node.js `package.json`

func Parse

func Parse(payload []byte) (*PkgJSON, error)

Parse parses `package.json` and returns the structure.

Jump to

Keyboard shortcuts

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