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

@js-basics/jsto...

Package Overview
Dependencies
Maintainers
2
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@js-basics/jsto...

transpile js to other languages

latest
Source
npmnpm
Version
0.8.1
Version published
Maintainers
2
Created
Source

GitHub package version npm version license

OSX/Linux Build Status Dependencies Status DevDependencies Status

jsto

this libary is going to provide you a simple way of writing typed js code. this code can run and tested directly with js. but with types it can be transpiled to other languages, too.

type inference is supported by type checker.

environmentjsto... checkertypescript
run time
build time
IDE time (the best time)
typesafejsto... checkertypescript
functions
arguments
classes
methods
variables
arithmetics

features in process

  • generate JSTree out of js

    • ESTree + type annotations
  • type inference

  • jstoGLSL transpiler great for performance

    • generate valid glsl code
    • js transformations to glsl
      • modulo as arithmetic operator
      • pow as arithmetic operator
      • variable index expression for vectors
      • gentype for function outline
      • functional structs
      • destruct
      • symbols and enums
  • jstoGLSL simulator great for testing

    • painting (slowly) to image buffer
    • vector arithmetic (component wise) operator support
    • partly matrix algebraic operator support
    • typesafety

in future

  • jstoWorker
    • transpile js code without overhead of types and arithmetics

JSTree extended from ESTree

typeAnnotation for Literals and Identifiers

returnType for Functions

Demos

first glsl simulation in js

Keywords

transpiler

FAQs

Package last updated on 02 Oct 2023

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