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

js-template-generator

v1.0.4

Published

CLI tool for generating Node.js and TypeScript project templates.

Downloads

181

Readme

JS Template Generator

js-template-generator is a CLI tool designed to facilitate the creation of various Node.js and TypeScript project templates. This tool simplifies the setup process for common project structures, allowing for rapid development and prototyping.

Features

  • Generate Templates: Quickly create pre-defined project structures for Node.js and TypeScript applications.
  • Customizable: Easily add more templates as your project evolves.
  • Comprehensive Templates: Includes configurations, tests, and documentation for each template.

Installation

To install js-template-generator, run the following command:

npm install -g js-template-generator

Usage

To generate a new project template, use the generate-js-template command followed by the name of the template. For example:

generate-js-template typescript-sfa

Replace typescript-sfa with the desired template name. The tool will create a project directory with the specified template at your current working directory.

Available Templates

  • typescript-sfa: This is a single-file TypeScript template app for faster idea testing and prototyping. It includes:
    • Tests
    • Swagger documentation
    • A demo root API call
    • Basic async error handling
    • A demo Axios call
    • .env support

Adding New Templates

To add new templates, follow these steps:

  1. Create a Template Directory: Place your template files inside a new directory within the templates folder.
  2. Update Template List: Add an entry for the new template in the templates object in index.js.

Development

For development and contributing to the js-template-generator, follow these instructions:

  1. Clone the Repository:

    git clone https://github.com/your-username/js-template-generator.git
  2. Navigate to the Project Directory:

    cd js-template-generator
  3. Install Dependencies:

    npm install
  4. Run the CLI Tool:

    npm start
  5. Lint and Format Code:

    npm run lint
    npm run format

Contributing

Contributions are welcome! Please open an issue or submit a pull request to contribute to this project. Ensure your contributions adhere to the project's coding standards and include tests where applicable.

License

This project is licensed under the ISC License.