What are the naming conventions for the 'name' field in `package.json`?

Question

Grade: Education Subject: Support
What are the naming conventions for the 'name' field in `package.json`?
Asked by:
71 Viewed 71 Answers

Answer (71)

Best Answer
(309)
The `name` field must be lowercase, can only contain alphanumeric characters (a-z, 0-9), hyphens (-), and periods (.). It must start with a lowercase letter and cannot start with a period. It also cannot be a reserved name (like 'node' or 'npm'). Check the `npm` documentation for the most up-to-date rules.