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

@plunk/node

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plunk/node

Official Node.js library for useplunk.com

  • 0.0.6
  • npm
  • Socket score

Version published
Weekly downloads
621
decreased by-77.48%
Maintainers
1
Weekly downloads
 
Created
Source

Plunk Node.js

This project contains the helper library for interacting with the Plunk API using Node.js.

Table of contents

  • Installation
  • Getting started
  • API

Card

Installation

Installing the latest version can be done through your package manager.

npm i @plunk/node

yarn add @plunk/node

Getting started

Any interaction you want to make with the Plunk API needs to be done through the Plunk client. You can use a default import to get started.

import Plunk from '@plunk/node';

const plunk = new Plunk("Your secret key");

API

Events

publish()

Used to publish an event

Parameters
  • event: The name of the event to publish
  • email: The email address of the user to publish the event to
  • data [Optional]: An object containing the data to attach to the user
const success = await plunk.events.publish({
  event: "new-project",
  email: "hello@useplunk.com",
  data: {
    company: "Plunk"
  }
});

Keywords

FAQs

Package last updated on 26 Jul 2022

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