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

@zlanguage/zcomp

Package Overview
Dependencies
Maintainers
2
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zlanguage/zcomp

The Z language transpiler.

  • 0.6.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

zcomp

The Z transpiler/interpreter

Version Downloads/week License

Z

A transpiled language that can be evaluated as a script (for testing) or transpiled to human-readable JS (for production code). Z supports modules, functions, closure, error handling, and many more features you would expect from a modern language. Is it ready for production code? I'd wait a few months before that.

ZComp

The Z Compiler (ZComp) can be installed with:

$ npm install -g @zlanguage/zcomp

Then, you should install the zstdlib (a mix of a runtime and standard library):

$ npm install -g @zlanguage/zstdlib

Finally, navigate to the directory you're using Z in, and type:

$ npm install @zlanguage/zstdlib

This installs the Z standard library locally in just the paackage you need it for.

Use the Compiler

Transpile Z Code:

$ zcomp transpile [path of Z to transpile] [path of where to output the transpiled JS]

Run Z Code:

$ zcomp run [path of Z to run]

Transpile one directory to another:

$ zcomp dirt [path of directory with Z] [path of "out" directory]

Watch a file for changes, and transpile when the file is changed:

$ zcomp watch [path of Z to watch and transpile] [path of where to output the transpiled JS]

Docs

The docs are on the offical Z Website.

Keywords

FAQs

Package last updated on 07 May 2020

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