Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@osskit/dafka-producer-fetch-client

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

@osskit/dafka-producer-fetch-client

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
403
increased by53.23%
Maintainers
1
Weekly downloads
 
Created
Source

GitHub Workflow Status License code style: prettier

typescript-fetch client wrapper for dafka-producer

Install

yarn add @osskit/dafka-producer-fetch-client

Usage

Scoped

import { createProducer } from '@osskit/dafka-producer-fetch-client'

export const produce = createProducer<TEventData>('https://my-dafka-producer-url', 'my-topic', 'my-partition-key');

await produce<TEventData>(payload);

API

createProducer(url: string, topic: string, key?: string)

url

Type: string

The URL of dafka-producer

topic

Type: string

The Kafka Topic name

key

Type: string

The Kafka Topic Partition key, if not supplied then a random UUID is generated

returns

An instance of a function that receives <T>(payload: T)

License

MIT License

FAQs

Package last updated on 26 Nov 2023

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