Skip to content

Instantly share code, notes, and snippets.

@brettstack
Last active November 5, 2021 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettstack/99597a01f39a23e91f1d9ce91a36d558 to your computer and use it in GitHub Desktop.
Save brettstack/99597a01f39a23e91f1d9ce91a36d558 to your computer and use it in GitHub Desktop.
Node Init
# https://philna.sh/blog/2019/01/10/how-to-start-a-node-js-project/
npm set init.author.name "Brett Andrews"
npm set init.author.email "brett@halfstack.software"
npm set init.author.url "https://halfstack.software"
npm set init.license "MIT"
npm set init.version "1.0.0"
git init
npx license $(npm get init.license) -o "$(npm get init.author.name)"
npx gitignore node
npx covgen "$(npm get init.author.email)"
npm init -y
git add -A
git commit -m "chore: initial commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment