'How can I check if a NPM package name is available?
I used to check if a package name is available by opening https://www.npmjs.com/package/<name>.
That doesn’t work anymore as NPM checks for similar-name conflicts.
Is there a different way?
Solution 1:[1]
If you are interested in checking if an organization name is free, use the following URL:
https://npmjs.com/org/ORG_NAME_HERE
If you're getting a "404 Not Found" error, it means the name is free. Otherwise it is not.
Solution 2:[2]
npm install npm-name
Reference: https://www.npmjs.com/package/npm-name
You could also refer to this: https://docs.npmjs.com/misc/registry
Solution 3:[3]
you can use this website to generate unused name
only 7 [consonants] [vowels] [consonants] names left at the time of writing
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | |
| Solution 3 | tylim |

