Create a Vanilla JavaScript Package on npm
November 2025
These are my notes for creating the npm package for bitty
- Pick the folder you want to use for the package and do the following
-
Create a package.json file using
@usernamefor the scope along with the name of the project. -
Create a README.md file next to the
package.jsonfile with details about the package. -
Log into npm if you aren't already (can check with
npm whoami)npm login -
Publish the package with:
end of line