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

spit

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spit

an asynchronous event emitter utilizing promises

latest
Source
npmnpm
Version
3.1.0
Version published
Maintainers
2
Created
Source

spit

Spit is an event emitter that leverages asynchronous methods.

There are two key differences between it and the node.js core event emitter.

The emit() method returns a promise that will be resolved or rejected when all listeners have completed.

The on() or addListener() method accepts two parameters, an event name and a method that will receive all arguments that were emitted on that event. You may return a promise within the method if you need to do any asynchronous processing.

FAQs

Package last updated on 15 Nov 2015

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