https://github.com/ozum/validate-name
Check similar names in npm registry.
https://github.com/ozum/validate-name
check e403 module name npm package package-json similarity valid
Last synced: about 2 months ago
JSON representation
Check similar names in npm registry.
- Host: GitHub
- URL: https://github.com/ozum/validate-name
- Owner: ozum
- Created: 2020-12-14T18:29:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T12:44:07.000Z (about 1 year ago)
- Last Synced: 2025-03-10T11:48:10.255Z (2 months ago)
- Topics: check, e403, module, name, npm, package, package-json, similarity, valid
- Language: TypeScript
- Homepage:
- Size: 561 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```sh
npm install -g validate-name
```# Usage
```sh
validate-npm-name my-package
```-Don't update downloaded file if it is updated in last 1440 minutes (24 hours). Default is 60 minutes.
```sh
validate-npm-name my-package --max-age 1440
```Use your own NPM server
```sh
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](https://stackoverflow.com/users/1611459/robc) for the idea and Regular Expression. Original script is [here](https://paste.ee/p/DdxFJ) created by [RobC](https://stackoverflow.com/users/1611459/robc).