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

cr-ts-node

v1.0.31

Published

A handy CLI tool for setting up projects

Downloads

39

Readme

README for cr-ts-node CLI

Overview

Welcome to cr-ts-node (Create TypeScript Node), a CLI utility designed to facilitate the rapid setup of Node.js projects using TypeScript. This tool automates various initial setup tasks such as creating the project structure, installing dependencies, initializing version control, and configuring TypeScript. Aimed at backend developers looking to kickstart new projects, cr-ts-node reduces setup time and lets you focus on development.

Key Features

  • Automated Project Structure Setup: Creates a new project directory, initializing a sensible folder structure.
  • Comprehensive Dependency Installation: Sets up all the necessary npm packages for development and production.
  • Environment and Configuration Setup: Automatically configures .gitignore, .env, and TypeScript settings.
  • Version Control Ready: Initializes a Git repository with the first commit already in place.
  • Quick Start: Use npx to run the setup without installing the package globally.

Getting Started

Prerequisites

Usage with NPX

You can run this setup tool directly using npx without needing to install it globally:

npx cr-ts-node

Follow the on-screen prompts to provide your project name and description. The tool will handle everything else, and you will end up with a fully configured TypeScript Node.js project.

Local Installation (Optional)

If you prefer, you can also install the package globally using npm:

npm install -g cr-ts-node

Then you can run the tool anytime using:

cr-ts-node

How It Works

When you execute the tool, it performs the following steps:

  1. Prompts for Project Information: Asks for project name and description.
  2. Creates Project Directory: Sets up the main and subdirectories.
  3. Initializes npm and Installs Dependencies: Sets up package.json and installs dependencies.
  4. Sets Up TypeScript: Configures TypeScript with tsconfig.json and env.d.ts.
  5. Version Control Initialization: Sets up a new Git repository.
  6. Creates Essential Files: Such as .gitignore, .env, README.md, and more.
  7. Generates a Basic Express Server: In TypeScript, ready for further development.

Packaging as an npm Package

To make this tool available through npx, follow these steps:

  1. Ensure your package.json has the correct bin entry which points to the CLI script.
  2. Publish the package to npm using:
npm publish
  1. Once published, it can be run using npx [package-name] as described above.

Contributing

We encourage contributions! If you have improvements or bug fixes, please fork the repository and submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Further Contact

Feel free to reach out or contribute to the project at its GitHub page: https://github.com/dishant0406.