Socket
Socket
Sign inDemoInstall

@segment/loosely-validate-event

Package Overview
Dependencies
2
Maintainers
60
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @segment/loosely-validate-event

Loosely validate an event.


Version published
Weekly downloads
919K
decreased by-8.62%
Maintainers
60
Install size
253 kB
Created
Weekly downloads
 

Readme

Source

@segment/loosely-validate-event

Loosely validate an event.

Example

const validate = require('@segment/loosely-validate-event')

const event = {
  type: 'track',
  userId: 'abc123',
  properties: {
    foo: 'bar'
  }
}

validate(event) // throws if `event` does not pass validation

FAQs

Last updated on 24 Jan 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc