New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@protobuf-ts/runtime-angular

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@protobuf-ts/runtime-angular

Runtime library for using protobuf-ts with angular

  • 1.0.0-alpha.18
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
42
increased by40%
Maintainers
1
Weekly downloads
 
Created
Source

@protobuf-ts/runtime-angular

Runtime library for using protobuf-ts with angular.

If you generate code with the protobuf-ts plugin and the enable_angular_annotations option, you need this package as a dependency.

Provides the following features:

Injection token for RpcTransport

Using the RPC_TRANSPORT injection token, you can configure aRpcTransport for your application.

// app.module.ts

@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    BrowserModule,
  ],
  providers: [

    // Make this service available for injection in all components:
    AllMethodsServiceClient,

    // Configure Twirp as transport for all services. 
    {provide: RPC_TRANSPORT, useValue: new TwirpFetchTransport({
        baseUrl: "http://localhost:4200"
    })},
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
}

Date pipe with support for google.protobuf.Timestamp

The PbDatePipe works exactly like the original angular DatePipe, but also understands google.protobuf.Timestamp and google.type.DateTime.

To use PbDatePipe, add the PbDatePipeModule to your AppModule import:

// app.module.ts

@NgModule({
  imports: [
    BrowserModule,
    FormsModule,
    PbDatePipeModule,
  ],
  // ...
})
export class AppModule {
}

Keywords

FAQs

Package last updated on 14 Aug 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc