-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.njk
37 lines (23 loc) · 997 Bytes
/
README.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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).