1.2.0 • Published 1 month ago

validate-name v1.2.0

Weekly downloads
12
License
MIT
Repository
github
Last release
1 month ago

validate-name

Check similar names in npm registry.

Upon first use it downloads all module names from npm registry. Subsequent downloads include only updated modules names and are much smaller.

Installation

npm install -g validate-name

Usage

validate-npm-name my-package

-Don't update downloaded file if it is updated in last 1440 minutes (24 hours). Default is 60 minutes.

validate-npm-name my-package --max-age 1440

Use your own NPM server

validate-npm-name my-package --url https://my.server.com --urlAll https://my.server.com/_all_docs

Note

This module is based on best effort. NPM's similarity algorithm is not open source, so this similarity check can not guarantee validity of your package name.

Contributions

Thanks to RobC for the idea and Regular Expression. Original script is here created by RobC.