qjsc
Node.js addon for the Quickjs compiler
Last updated 4 years ago by andycall .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install qjsc 
SYNC missed versions from official npm registry.

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 .
  1. Enter into images
docker run --rm -it -v $(pwd):/project qjsc
  1. Set up env in docker container
cd project
scl enable rh-nodejs12 bash
scl enable devtoolset-7 bash
  1. Build your binary
npm install
npm run prebuild

Current Tags

  • 0.2.10                                ...           latest (4 years ago)

24 Versions

  • 0.2.10                                ...           4 years ago
  • 0.2.10-beta.2                                ...           4 years ago
  • 0.2.10-beta.1                                ...           4 years ago
  • 0.2.9                                ...           4 years ago
  • 0.2.9-beta.1                                ...           4 years ago
  • 0.2.8                                ...           4 years ago
  • 0.2.8-beta.1                                ...           4 years ago
  • 0.2.7                                ...           4 years ago
  • 0.2.6                                ...           4 years ago
  • 0.2.5                                ...           4 years ago
  • 0.2.5-dev.1                                ...           4 years ago
  • 0.2.4                                ...           4 years ago
  • 0.2.3                                ...           4 years ago
  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.7                                ...           5 years ago
  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 22
Last Day 0
Last Week 21
Last Month 2
Dependencies (5)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |