npm-bootstrap

Bootstraps an npm module by making a package.json, initializing a git repo, and optionally creating a repo on GitHub.

Usage no npm install needed!

<script type="module">
  import npmBootstrap from 'https://cdn.skypack.dev/npm-bootstrap';
</script>

README

npm-bootstrap

Bootstraps the current directory as an npm module, creating a package.json and optionally initializing a git repo. Can also create a repo on GitHub (or use an existing one, so long as it hasn't been pushed to before) and push the first commit to it. Adds LICENSE.md and README.md files to get you started.

Installation

Might as well install this one globally if you want to use it. Or install it locally if you'd like, but that seems silly.

npm install -g npm-bootstrap

Usage

NOTE: If you've enabled 2-factor authentication on your GitHub account, you will need to create a personal access token, available at https://github.com/settings/tokens. The token for npm-bootstrap only needs the public_repo scope.

From the directory where you want to create your new module, run:

npm-bootstrap

Then follow the prompts!