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

up_data_checker

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

up_data_checker

Check data using a template Object

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

The Datachecker is analysing a cartain javacript object. The Data gets compared with a individual template and checks if all the keys that are included in the template exist in the passed object too. It also checks if the passed data is of the correct datatype Its also possible to assign a custom function to the template, that checks the data, if the type custom is used a cutomfunction must be handed over as third parameter

Possible types are:

  • string
  • integer
  • float
  • boolean
  • array
  • object
  • custom
  • [Function]

if a number or a bool is passed as a string the Checker converts it in the datatype it should actually be.

For german users it is interesting that float number with comma are also supported (for example "5,34" becomes 5.34)

A example of the Datachecker is included in this folder

Keywords

data_checker

FAQs

Package last updated on 01 Feb 2021

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