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

@trayio/builder-squad-event-emitter

Package Overview
Dependencies
Maintainers
9
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trayio/builder-squad-event-emitter

Support package for Front-end code test

  • 1.1.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
9
Weekly downloads
 
Created
Source

@trayio/builder-squad-event-emitter

This is a package to aid with the Tray.io Front-end engineer code test.

Installation

npm install @trayio/builder-squad-event-emitter

Usage

This package comes as a React Component. To use in your application, simply wrap it in this components like so:

import EventEmitter from '@trayio/builder-squad-event-emitter';

...

render() {
    return (
        <EventEmitter>
            <YourApp />
        </EventEmitter>
    )
}

Once this is done, it will pass down one extra prop to <YourApp named data-tray which looks like this:

{
    coords: {
        x: number;
        y: number;
    },
    connector: {
        iconURL: string;
        name: string;
    }
}

FAQs

Package last updated on 03 Feb 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