create-pfeifer
v0.2.10
Published
Scaffold new npm packages with @pfeiferio standards.
Readme
create-pfeifer
Scaffold new npm packages with @pfeiferio standards.
Usage
npm init pfeifer@latest
Prompts
| Prompt | Default |
|---|---|
| Package name | @pfeiferio/ |
| Node version | 18 |
| Author name | from git config user.name |
| Author email | from git config user.email |
What it does
- Creates the project directory
- Copies and renders the template (interpolates
package.json,README.md,LICENSE,.nvmrc) - Initializes a git repository with an initial commit
- Configures local git user
Options
| Flag | Description |
|---|---|
| --version, -v | Print version and exit |
| --debug, -d | Enable debug logging |
Template variables
| Variable | Description |
|---|---|
| package.name | Full package name, e.g. @pfeiferio/my-package |
| package.author | Author string, e.g. Pascal Pfeifer <[email protected]> |
| node.version | Node version, e.g. 18 |
| urlPathPart | Derived from package name, e.g. pfeiferio/my-package |
| packageNameUrlSafe | URL-encoded package name |
| year | Current year |
Updating
npm init pfeifer uses the npx cache. To force the latest version:
npm init pfeifer@latestIf the cached version is stale:
rm -rf ~/.npm/_npxLicense
MIT
