This can occur if the domain name contains a hyphen or other special character, if the package name begins with a digit or other character that is illegal to use as the beginning of a Java name, or if the package name contains a reserved Java keyword, such as "int".
In this event, the suggested convention is to add an underscore. For example:. All rights reserved. Hide TOC. Naming Conventions Package names are written in all lower case to avoid conflict with the names of classes or interfaces.
Git URLs used for npm packages can be formatted in the following ways:. The commit-ish can be any tag, sha, or branch that can be supplied as an argument to git checkout.
The default commit-ish is master. To be loaded by the Node. In the context of a Node program, the module is also the thing that was loaded from a file. For example, in the following program:. Skip to content. Packages from Adobe would be of the form:. As mentioned, this hierarchical package naming convention comes from the Java programming language.
It may not be of any consequence to the end user, but it can prove quite helpful for developers. For more info, Please read our privacy policy before submitting your comment. Save my name, email, and website in this browser for the next time I comment. This site uses Akismet to reduce spam.
0コメント