Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

type2js

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

type2js

What if I tell you the type checker is nothing else than executing your JavaScript code in the type domain?

npmnpm
Version
0.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Type2JS

What if I tell you the type checker is nothing else than executing your JavaScript code in the type domain?

Demo

Input program:

// File hello_world.js
var a = 1;
var b = a + 2;
var c = b + 'Hello World';

Let's transform this into the type domain:

var a = $T.Int(1);
var b = $T.addBinaryOp(a, $T.Int(2));
var c = $T.addBinaryOp(b, $T.Str('Hello World'));

FAQs

Package last updated on 02 Apr 2015

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