Skip to content

Instantly share code, notes, and snippets.

@dazeb
Last active May 15, 2023 16:09
Show Gist options
  • Select an option

  • Save dazeb/dd9b2b41766cbef0617720300992cb12 to your computer and use it in GitHub Desktop.

Select an option

Save dazeb/dd9b2b41766cbef0617720300992cb12 to your computer and use it in GitHub Desktop.
New Node project
#!/bin/bash
# Ask for the project name
echo "Enter your new project name:"
read projectname
# Create directory and navigate into it
mkdir $projectname
cd $projectname
# Initialize npm
npm init -y
# Generate essential files
npx license MIT
npx gitignore node
npx covgen $(git config --get user.email)
touch index.js
echo "Project setup complete."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment