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

node-type-check

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-type-check

Package focused on simple type check to node/javascript applications

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

node-type-check

A low-light package that can help you to test type and comparation on Node.JS/ CommonJS apps.

Usage

install from npm using

npm i node-type-check

Import using require()

const TypeCheck = require('node-type-check')

And check your Objects vs Types using a simples method

TypeChecker(<Object>, <Expected type>);

The result will be true or false

Package coverage

✓ passes values of Number type 
✓ passes values of String type 
✓ passes values of Boolean type 
✓ fitlers value if not Number 
✓ fitlers value if not String 
✓ fitlers value if not Boolean 
X handle objects 
✓ differntiates null from object 
X handles arrays 
X handles nested object 
X handles arbitrarily deep object 
X handles object spec inside of array 

Support and bug

Please, open a issue on GitHub

Use Samples

Here

License

MIT

FAQs

Package last updated on 14 Aug 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