0.3.3 • Published 1 year ago

jas-script v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

JAS

"JAS" is simply Javascript Actions Script based on the idea of a unique style js syntaxes

Example

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));

Docs

Table of contents:- 1. Basics 2. Difference

Understanding the Basics

First of all make an index.js file

const jas = require("jas-script");
const module = new jas("./test/code.js");
module.compile();

Now create a folder test and inside the folder make a file code.js

Contents:-

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

Difference between js and jas

Following the differences between js and jas

1. require() is now need()

js

const fs = require("fs");

jas

const fs = need("fs");

2. Constructor

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

3. Process object changes

In jas process.cwd() will return "home/vm" and process.mainCwd() will return the correct dir

js

console.log(process.cwd())
//returns dir

jas

print(process.cwd())
//returns "home/vm"
print(process.mainCwd())
//returns dir name

NOTE

1. JAS cannot be used to make packages

2. JAS script once loaded cannot be terminated until node process dies

3. JAS script is still in BETA

0.3.4-beta

1 year ago

0.3.101

2 years ago

0.3.103

2 years ago

0.3.102

2 years ago

0.3.102-beta

2 years ago

0.2.0-main

2 years ago

0.3.0-dev

2 years ago

0.2.6-main-beta

2 years ago

0.3.0-beta

2 years ago

0.1.0

2 years ago

0.3.3-dev

2 years ago

0.2.0-rc-1

2 years ago

0.3.0

2 years ago

0.3.103-beta

2 years ago

0.3.103-dev

2 years ago

0.2.5-main-dev

2 years ago

0.3.21-dev

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.8-main-dev

2 years ago

0.3.3

2 years ago

0.3.0-main-dev

2 years ago

0.3.2-dev

2 years ago

0.3.102-dev

2 years ago

0.2.1-main

2 years ago

0.2.7-main-beta

2 years ago

0.2.7-main-dev

2 years ago

0.3.101-dev

2 years ago

0.2.0-beta-7

2 years ago

0.2.0-beta-6

2 years ago

0.1.0-beta-2

2 years ago

0.1.0-beta-1

2 years ago

0.1.0-beta-4

2 years ago

0.1.0-beta-3

2 years ago

0.3.1-main-beta

2 years ago

0.3.101-beta

2 years ago

0.3.3-beta

2 years ago

0.3.1-main-dev

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.0.2

2 years ago

0.2.7

2 years ago

0.2.8-main-beta

2 years ago

0.2.8

2 years ago

0.2.5-main

2 years ago

0.3.2-beta

2 years ago

0.1.0-beta-5

2 years ago

0.2.5

2 years ago

0.2.2-beta

2 years ago

0.0.1-general

2 years ago

0.0.0-dev

2 years ago