validate

package
v0.0.0-...-729d526 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package validate checks if the given name is an acceptable npm package name.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	ValidForNewPackages bool
	ValidForOldPackages bool
	Warnings            []string
	Errors              []string
}

Result is the struct for the result of the validation.

func Validate

func Validate(name string) Result

Validate returns the result of whether the given name is an acceptable npm package name.

Jump to

Keyboard shortcuts

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