1.1.2 • Published 3 years ago

ts-generate v1.1.2

Weekly downloads
15
License
MIT
Repository
github
Last release
3 years ago

NPM Version CI codecov Dependency Status Dev Dependency Status

ts-generate

CLI to generate TypeScript interfaces from source files.

Table of Contents

Features

  • 💪 Generate TypeScript files (obviously).
  • 🚀 Configure output to match your project structure.

Installation

npm install -g ts-generate

Usage

ts-generate --help

class-to-interface [glob]

Generate interfaces from existing TypeScript classes

ts-generate class-to-interface src/entities/*.ts

Options:

OptionTypeDescriptionDefault
--prefixstringInterface name prefix.n/a
--suffixstringInterface name suffix.n/a
--fileNameCasingstringOutput file name casing.n/a
--outDirstringRedirect output structure to the directory.n/a

Development

Clone the repo and run the following commands in the ts-generate directory:

npm install
npm link
npm run build