koa-api-starter

1.0.6 • Public • Published

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

  1. Create a KOA Api in a specified directory:

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

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

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

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

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i koa-api-starter

    Weekly Downloads

    0

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    4.97 kB

    Total Files

    3

    Last publish

    Collaborators

    • itss4nty