Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Creates a very barebones directory for a Node.js package
#!/bin/bash
if mkdir "$1"
then
cd "$1"
cat << EOF > package.json
{
"name": "$1",
"version": "1.0.0",
"author": "${@:2}",
"main": "index.js"
}
EOF
cat << EOF > readme.md
***Getting Started***
***Usage***
***Support***
***Contributing***
EOF
cat << EOF > .gitignore
node_modules
*.log
EOF
touch index.js
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.