0.3.13 • Published 1 year ago

@zhuolinho/babel-preset-abc v0.3.13

Weekly downloads
-
License
Apache License 2....
Repository
github
Last release
1 year ago

node-qjsc

Node.js addon for the QuickJS compiler.

Current supported version:

  • 20210327

Install

npm install qjsc --save

Usage

const Qjsc = require('qjsc');
const qjsc = new Qjsc();

// Dump bytecode from javascript source;
qjsc.compile('function hello() { return 1 + 1};'); // <Buffer ...>

// Use specified quickjs version
qjsc = new Qjsc({version: '20210327'});

// Get all supported versions.
qjsc.getSupportedVersions();

Contribute

Generate compile_commands.json

node-gyp configure -- -f gyp.generator.compile_commands_json.py

Prebuild linux binary

  1. Install docker
  2. Build local image with Dockerfile
    docker build -t qjsc .
  3. Enter into images
    docker run --rm -it -v $(pwd):/project qjsc
  4. Set up env in docker container
    cd project
    scl enable rh-nodejs12 bash
    scl enable devtoolset-7 bash
  5. Build your binary
    npm install
    npm run prebuild
0.3.9

1 year ago

0.3.13

1 year ago

0.3.12

1 year ago

0.3.11

1 year ago

0.3.10

1 year ago

0.3.0

2 years ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.8

1 year ago

0.3.7

1 year ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

1.0.0

3 years ago