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

type-checking

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

type-checking

Check for what you need. Mainly for framework developers

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Type Checking

Check for what you need

Mainly for framework developers, although it is just as usable in an app

Installation

npm install --save type-checking

Usage

  • By registering (recommended, but can cause conflicts)

  require('type-checking/register')('responds_to')

  array = []

  array.responds_to 'indexOf' #true
  array.responds_to ['indexOf','join','concat'] #true

  class ArrayInterface
    indexOf:->
    join:->
    concat:->

  array.responds_to ArrayInterface #true

  • Directly

  responds_to = require 'type-checking'

  array = []

  responds_to array, 'indexOf' #true

Keywords

type-check

FAQs

Package last updated on 30 Aug 2014

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