barriedirk-practice-udemy-tyny-npm-deploy v1.0.0
note:
#!/usr/bin/env node is an instance of a shebang line: the very first line in an executable plain-text file on Unix-like platforms that tells the system what interpreter to pass that file to for execution, via the command line following the magic #! prefix (called shebang).
Note: Windows does not support shebang lines, so they're effectively ignored there; on Windows it is solely a given file's filename extension that determines what executable will interpret it. However, you still need them in the context of npm.1
inside of this project, execute:
npm init -y npm install typescript express npm install @types/express npx tsc --init
goto npmjs.com and check if there is any name equal to your package
// optional
git init
// add .gitignore to include the folders you wannot to add in the git
git status git add . git commit -m "initial commit"
// npm publish
npm login npm publish
3 years ago