Skip to content

Hayden-Allen/quickjspp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuickJS Javascript Engine - Cmake Version

  • Date: November 29th, 2022
  • Purpose: JavaScript engine, command-line interpreter and stand-alone executable compiler
  • Maintainer: Robin Rowe robin.rowe@cinepaint.org
  • Platforms: Windows, Linux, MacOS, FreeBSD
  • Language: C
  • Build System: cmake
  • Dependencies: libunistd (needed for Windows only)

2.2 Quick start

qjs is the command line interpreter (Read-Eval-Print Loop) and/or expressions as arguments to execute them:

./qjs examples/hello.js

qjsc is the command line compiler, generates a hello executable with no external dependency:

./qjsc -o hello examples/hello.js
./hello

jscompress is a Javascript compressor:

jscompress [options] filename
Javascript compressor

-h          print this help
-n          do not compress spaces
-H          keep the first comment
-c          compress to file
-C name     compress to C source ('name' is the variable name)
-D symbol   define preprocessor symbol
-U symbol   undefine preprocessor symbol
-o outfile  set the output filename (default=out.js)

Documentation

doc/quickjs.pdf or doc/quickjs.html.

QuickJS Javascript Engine - Premake Windows Previous Version

Authors: Fabrice Bellard and Charlie Gordon

Ported from https://bellard.org/quickjs/ and its official GitHub mirror https://github.com/bellard/quickjs

By Andrew Fedoniouk (a.k.a. c-smile)

This version is

  • Microsoft Visual C++ compatible/compileable
  • Is used in Sciter.JS
  • It contains extras:

Open Source License

/*
 * C utilities
 * 
 * Copyright (c) 2017 Fabrice Bellard
 * Copyright (c) 2018 Charlie Gordon
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

About

Port of QuickJS Javascript Engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 86.3%
  • JavaScript 6.1%
  • C++ 5.0%
  • HTML 2.0%
  • Makefile 0.3%
  • Shell 0.1%
  • Other 0.2%