Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
jas-script
Advanced tools
"JAS" is simply Javascript Actions Script based on the idea of a unique style js syntaxes
Cli: Retro
Package: AHQ Softwares
Installing JAS without CLI
npm i jas-script
With CLI
npm i -D jas-script
# or install it globally
npm i -g jas-script
const jas = require("jas-script");
const compiler = new jas();
compile.compile("./test/code.js");
test/code.js
//A simple discord bot code on jas
const discord = need(`eris`);
client.connect()
client.on("error", (err) => print(err));
Table of contents:-
First of all make an index.js file
const jas = require("jas-script");
const module = new jas("./test/code.js");
module.compile();
test
and inside the folder make a file code.js
print(`Hello world!`);
now just run node index.js
and you'll see the result
JAS-System-info: Found file ./test/code.ts
Hello world
tempbase
/*
Set data to tempbase
*/
tempbase.set(`Hello`, "world");
tempbase.set(`number`, 1);
/*
Get data from tempbase
*/
tempbase.fetch(`Hello`); //returns "world"
/*
Delete data from tempbase
*/
tempbase.delete(`Hello`);
/*
Add data to tempbase
*/
tempbase.add(`number`, 3); //number is now 4
/*
Subtract data from tembase
*/
tempbase.subtract(`number`, 3); //number is now 1
js
const fs = require("fs");
jas
const fs = need("fs");
new module(...options)
is now a(module, ...options)
js
const jas = require("jas-script");
const compiler = new jas("./test/code.js");
same code in jas
const jas = need("jas-script");
const compiler = a(jas, "./test/code.js");
/*
You can still use new if you're not accustomed to it
*/
const compiler = new jas("./test/code.js"); //using legacy one
console.log(process.cwd())
//returns dir
print(process.cwd())
//returns "home/vm"
print(process.mainCwd())
//returns dir name
__dirname
is now dir
JAS also has a new CLI, as of 0.2.0. Contents under CLI:-
To install the cli
use the following command
npm i jas-script -g --save
To view the help menu view use
jas
/*or*/
jas help
You can run your jas code directly from the cli without using a js file by the following cmd
jas load -f <fs file path>
/*
You can exclude -f also
*/
jas load <fs file path>
Make a script in your package.json named "start"
"scripts": {
"start": "jas load -f \"pathToYourFile.js\""
},
/*
You can also exclude -f
*/
"scripts": {
"start": "jas load \"pathToYourFile.js\""
},
Then run
npm start
You can get the jas version directly from the cli with the following command
jas version
/*
You can use `jas ver` also
*/
jas ver
or
jas --version
/*
You can use `jas --ver` also
*/
jas --ver
To use our prebuild templates use the following command
jas create
/*
Apparantly there are some aliases
*/
jas make
/*or*/
jas --create
/*or*/
jas --make
FAQs
A ts style version of js
The npm package jas-script receives a total of 43 weekly downloads. As such, jas-script popularity was classified as not popular.
We found that jas-script demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.