Skip to content

JelleDBZ/bug-jsonv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to install

npm i bug-jsonv

How to use

var validator = require('bug-jsonv')

Method that the group bug-game will use

The message comes from the mqtt channel on which you subscribed

var JSONdata = JSON.parse(message.toString()); 
var jsonv = new validator(JSONdata); //JSONdata will the object you get from the API

if(jsonv.checkValidclientdata())
{ 
    //if the object is correct and validated, do something
} 

CONTACT

If you need any help, contact me at jelle.debuyzere@student.vives.be https://www.npmjs.com/package/bug-jsonv

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published