National Public Mania

    @kth/kth-validation

    1.0.0 • Public • Published

    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')

    Install

    npm i @kth/kth-validation

    DownloadsWeekly Downloads

    6

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.24 kB

    Total Files

    6

    Last publish

    Collaborators

    • kthwebmaster
    • wkchung
    • exacs
    • ssundkvist
    • kth-ci
    • emilstenberg