Socket
Book a DemoInstallSign in
Socket

ts-generate

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-generate

CLI to generate TypeScript interfaces from source files.

latest
Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

typescript

FAQs

Package last updated on 29 Jul 2021

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