Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

otype

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

otype

Get the type of any object

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

otype

Travis (.com) codecov coverage npm semantic-release

Motivation

Reuse

Installation

$ npm install --save otype

Usage

const otype = require("otype");

console.log(otype(1)); // Outputs: "Number"
console.log(otype(Null)); // Outputs: "Null"
console.log(otype()); // Outputs: "Undefined"
console.log(otype("a", true, Symbol("sym"))); // Outputs: ["String", "Boolean", "Symbol"]

License

MIT © wmik

Keywords

type

FAQs

Package last updated on 01 Sep 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