yarnlock

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 7 Imported by: 1

README

go-yarnlock

A yarn.lock parser written in go. Reference: https://github.com/yarnpkg/yarn/blob/master/src/lockfile/parse.js

Documentation

Index

Constants

View Source
const LockfileVersion = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type LockFile

type LockFile map[string]struct {
	Dependencies map[string]string `json:"dependencies,omitempty"`
	Integrity    string            `json:"integrity,omitempty"`
	Resolved     string            `json:"resolved,omitempty"`
	Version      string            `json:"version,omitempty"`
}

func ParseLockFileData

func ParseLockFileData(data []byte) (lf LockFile, err error)

func (LockFile) RootElement

func (f LockFile) RootElement() []string

RootElement returns elements which not be referenced. The result list is sorted.

Jump to

Keyboard shortcuts

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