You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

gblk

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gblk

GBLK language to run with node

0.0.185
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

CODE EXECUTION GBLK SCRIPT

v0.0.185: Fixed directly run file path

API

const gblk = require("gblk");

// Run source directly (Syncronous)
console.log(gblk.runSync("tulis('hai')"));

// Run file (Asyncronous)
gblk.runFile("./hello.gblk").then(console.log).catch(console.warn);

// Run source (Ansycronous)
gblk.run("tulis('halo'); jika 1 > 0 maka tulis('benar') tutup; tulis('selesai')").then(console.log).catch(console.error);

CLI

# Run source directly  
ngblk "jika benar maka tulis('benar == true') jikatidak tulis('salah == false') tutup" -t  

# Run source from file  
ngblk hello.gblk  

Test: npm test
Github: gblk

Keywords

gblk

FAQs

Package last updated on 14 Jun 2021

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