New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

p2ts

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p2ts

## Installation ```bash npm install p2ts --global ```

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Generate Typescript from Proto definition

Installation

npm install p2ts --global

Usage

p2ts /path/to/definition.proto /output/path/for.ts [NamespaceName]

What it does

Converts a proto definition file like:

	
message SomeMessage {
	int32 int_prop = 1;
	repeated string string_array_prop = 2;
	CustomType custom_type_prop = 3;
}

message CustomType {
	bool bool_prop = 1;
}

to


export namespace NamespaceName {

	export interface SomeMessage {
		int_prop: number;
		string_array_prop: string[];
		custom_type_prop: CustomType;
	}

	export interface CustomType {
		bool_prop: boolean;
	}

}


FAQs

Package last updated on 10 Oct 2018

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