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

tp-events

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tp-events

Nodejs events module in web browser!

1.0.3
latest
Source
npm
Version published
Weekly downloads
2.8K
36.65%
Maintainers
1
Weekly downloads
 
Created
Source

tp-events

Build Status Coverage Status npm version monthly downloads code style: prettier semantic-release UNPKG liense

Intro

Event based JavaScript for the browser with nodejs events api. For more: Nodejs Events.

Example

import EventEmitter from 'tp-events'

class MyEmitter extends EventEmitter {}

const myEmitter = new MyEmitter();
myEmitter.on('event', () => {
  console.log('an event occurred!');
});
myEmitter.emit('event');

Install

NPM Badge

API

Please refer to the document on Node.js v9.6.1 Events, API is the same.

Development

  • npm t: Run test suite
  • npm start: Run npm run build in watch mode
  • npm run test:watch: Run test suite in interactive watch mode
  • npm run test:prod: Run linting and generate coverage
  • npm run build: Generate bundles and typings, create docs
  • npm run lint: Lints code
  • npm run commit: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)

Reference

License

MIT

Keywords

events

FAQs

Package last updated on 05 Mar 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