npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@templ-project/create-node

v1.0.5

Published

Create Node.js Module

Downloads

1

Readme

@templ-project/create-node

Create Node modules with ease! @templ-project/create-node is a CLI tool designed to bootstrap Node.js projects with best practices in mind. It supports both JavaScript and TypeScript, along with a variety of build tools, testing frameworks, package managers, and quality tools to suit your development needs.

Features

  • Language Support: Choose between JavaScript and TypeScript for your project.
  • Module Targets: Generate projects for specific environments like the browser, Bun, Deno, Node.js (CJS), Node.js (ESM), or all.
  • Package Managers: Support for npm, pnpm, and yarn to manage your dependencies.
  • Testing Frameworks: Integrated setup for popular testing frameworks including AVA, Deno, Mocha, Jasmine, Jest, and Vitest.
  • Quality Tools: Option to include ESLint, Prettier, JSCPD, Dependency Cruiser, License Checker, Audit, and more for maintaining code quality.
  • Build Tools: Choose from ESBuild, Rollup, or SWC for building your project.

Installation

This tool is meant to be run with npx, so there's no need for a global installation. Simply run the following command to start creating your Node module:

npx @templ-project/create-node <projectPath>

Usage

After installation, you can create a new Node module by specifying the project path and customizing your setup with various options:

npx @templ-project/create-node [options] <projectPath>

Arguments

npx @templ-project/create-node --help

Usage: create-node [options] <projectPath>

Arguments:
  projectPath                        Project Path

Options:
  -l, --language <language>          Programming Language to use: js, ts (default: "ts")
  -t, --targets <targets...>         Module's target: browser, bun, deno, node-cjs, node-esm or all (default: "all")
  --package-manager <packageManger>  Package Manager to use: npm, pnpm, yarn (default: "npm")
  --test-framework <testFramework>   Testing Framework to use: ava, deno, mocha, jasmine, jest, vitest (default: "jest")
  --quality-tools <qualityTools...>  Quality Tools to use: eslint, oxlint, prettier, jscpd, dependency-cruiser, license-checker, audit or all (default: "all")
  --build-tool <buildTool>           Build Tool to use: esbuild, rollup, swc
  -h, --help                         display help for command

Example

Create a TypeScript project with Jest for testing, ESLint and Prettier for code quality, using npm as the package manager:

npx @templ-project/create-node -l ts --test-framework jest --quality-tools eslint prettier --package-manager npm my-awesome-project

Contributing

Contributions are welcome! If you'd like to help improve @templ-project/create-node, please fork the repository and submit a pull request.

License

This project is licensed under MIT License. See the LICENSE file for more details.