As an npm user or Org member, you can create and publish public packages that anyone can download and use in their own projects.
package.json
file with the package name alone: package-name
.package.json
file:
@username/package-name
@org-name/package-name