1.0.6 • Published 2 years ago
koa-api-starter v1.0.6
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-apiCreate a KOA Api with TypeScript in a specified directory:
npx koa-api-starter --typescript --directory my-koa-apiAdding Extra Dependencies:
npx koa-api-starter --directory my-koa-api --add-deps mongoose axiosAdding Extra Dev Dependencies
npx koa-api-starter --directory my-koa-api --add-dev-deps @types/mongoose