Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typee

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typee

A Javascript library for type checking

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

typee

A Javascript library for type checking.

Installation

Use Yarn or npm:

$ yarn add typee
$ npm i typee --save

Module Loading

It's an UMD module, so you can:

// ECMAScript 2015+ (via Babel)
import typee from 'typee'
// CommonJS
const typee = require('typee')
<!-- browser globals -->
<script src="YOUR_PATH_TO/node-modules/typee/dist/typee-umd-compiled.min.js" />

Usage

typee(null) // "Null"

typee(1) // "Number"

typee([1, 2, 3]) // "Array"

typee({k: 'v'}) // "Object"

typee(new Date()) // "Date"

typee(new Map()) // "Map"

typee(new Error()) // "Error"

typee(new Event('evt')) // "Event"

typee(async function() {}) // "AsyncFunction"

typee(new Promise(resolve => resolve(1))) // "Promise"

FAQs

Package last updated on 13 Apr 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc