koa-api-starter
v1.0.6
Published
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).
Downloads
4
Maintainers
Readme
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