6.0.0 • Published 6 months ago
ndjerrou_temp v6.0.0
How to publish a npm package
Steps :
Create an account on npm here
Go to the terminal and run :
npm login
A prompt will ask u to logthrough the browser
- Inside the package.json file, provide at least those informations :
- name : name of the package
- version : start at 1.0.0
- main : departure file for the use of the package
Export an object containing your API inside your main file
Go to terminal, run :
npm publish
And that's it !