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

qjsc

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qjsc

Node.js addon for the Quickjs compiler

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
274
-18.21%
Maintainers
3
Weekly downloads
 
Created
Source

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

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

FAQs

Package last updated on 29 Sep 2022

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