🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

whatta-type

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whatta-type

Verify that your users are inputting the correct types in a runtime environment. If they don't then your program will be alerted and you can deal with it in your own manner.

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
25
400%
Maintainers
1
Weekly downloads
 
Created
Source

whatta-type

How to import package

const type = require("whatta-type/whatta-type");
import type from "whatta-type/whatta-type.js";

How to use package

Here are some examples cases of how to use the package

console.log(type.isArray(["1", "2", "3"])); // true

console.log(type.isArray("I am a string")); // false

TODO

  • Add testing with Jest framework.

Notes:

This package is the equivalent of the text information gathered here. I did not create the code in this package rather I found that this was the most accurate source for verifying types at runtime that I could find and put it in package format so that other's could use it in their programs if they wanted w/o having to look-it-up everytime. The code is still open source with an ISC license for everyone!

Keywords

whatta-type

FAQs

Package last updated on 03 Aug 2019

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