Skip to content

Armour/go-validate-npm-package-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

go-validate-npm-package-name

PRs Welcome Go Report Card Go Project Layout Go Doc License: MIT Template from jarvis

Install

go get github.com/Armour/go-validate-npm-package-name/cmd/validate

Example

package main

import (
	"fmt"

	"github.com/Armour/go-validate-npm-package-name/cmd/validate"
)

func main() {
	r := validate.Validate("go-validate-npm-package-name")
	fmt.Println(r.ValidForNewPackages, r.ValidForOldPackages)
	if len(r.Errors) != 0 {
		fmt.Println(r.Errors)
	}
	if len(r.Warnings) != 0 {
		fmt.Println(r.Warnings)
	}
}

Contributing

See CONTRIBUTING.md

License

MIT License

About

🔮 Go clone of https://github.com/npm/validate-npm-package-name - Check if the given string is an acceptable npm package name

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages