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

@kth/kth-validation

Package Overview
Dependencies
Maintainers
11
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kth/kth-validation

Validation utils commonly used in KTH Node projects

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
11
Created
Source

KTH Validation

Validation utils commonly used in KTH Node projects

Example


const { required } = require('@kth/kth-validation')

function aFunction(name, occupation) {
  required({name, occupation})

  // .. do magic things
}

// No errors
aFunction('John', 'Painter')

// Error is thrown
aFunction('John')

Keywords

kth

FAQs

Package last updated on 12 Nov 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