I've created some functions in JavaScript.
I've found out that I reuse them in many projects.
So I decided to create a small JavaScript Library for my coding.
A Library like react, react-dom, jquery which I can install with npm:
npm install <my-personal-library>
I searched the net. I learned that I can use npm publish <my-personal-library
, but I do not know how to format my library and functions to use and install them like an npm package.
Also, I have no idea about creating type definitions for my functions and library. like @types/react Any guidence?