Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including can-type with all npm packages installed. Try it out:

var canType = require("can-type")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

can-type v1.1.4

Type definitions

can-type

Build Status Greenkeeper badge

Type definitions

Usage

ES6 use

With StealJS, you can import this module directly in a template that is autorendered:

import plugin from 'can-type';

CommonJS use

Use require to load can-type and everything else needed to create a template that uses can-type:

var plugin = require("can-type");

Standalone use

Load the global version of the plugin:

<script src='./node_modules/can-type/dist/global/can-type.js'></script>
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free