📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

koa-api-starter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-api-starter

A CLI to automatically clone the [Koa API Scaffold](https://github.com/itsS4nty/koa-api-scaffold) or the [Koa API Scaffold with TS](https://github.com/itsS4nty/koa-api-scaffold-ts).

1.0.6
latest
Source
npm
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

koa-api-starter

A CLI to automatically clone the Koa API Scaffold or the Koa API Scaffold with TS.

Usage

Basic Command Structure

npx koa-api-starter [options]

Options

  • -t, --typescript: Use TypeScript template. (Default: false)
  • -d, --directory: Specify the name of the directory to create.
  • --add-deps: Provide an array of extra dependencies you want to install. (Default: [])
  • --add-dev-deps: Provide an array of extra development dependencies you want to install. (Default: [])

Examples

  • Create a KOA Api in a specified directory:

    npx koa-api-starter --directory my-koa-api
    
  • Create a KOA Api with TypeScript in a specified directory:

    npx koa-api-starter --typescript --directory my-koa-api
    
  • Adding Extra Dependencies:

    npx koa-api-starter --directory my-koa-api --add-deps mongoose axios
    
  • Adding Extra Dev Dependencies

    npx koa-api-starter --directory my-koa-api --add-dev-deps @types/mongoose
    

Keywords

koa

FAQs

Package last updated on 09 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts