shortscript-main
v1.1.0
Published
A shorter version of javascript.
Downloads
3
Maintainers
Readme
ShortScript - A shorter version of JS
ShortScript is a shorter version of JavaScript, it is wriiten a file that has a ".sst" extension which can be imported in a Node.js file/program.
Note: This module uses does not use/support ESM.
Features
- Importable in a node.js file/program
- Covertable to js
- Compilable to a ShortScript program file, which can be run using the CLI
Requirements
- Node v10.12.0 or later
Install
- Module
$ npm i shortscript-main
# output is shown here
- CLI
$ npm i shortscript-cli
# global: npm i shortscript-cli -g
Usage (module)
Import module
const sst = require("shortscript-module");
Convert .sst to .js
sst.convertScript(name: string) // coverts to .js
Require .sst file
sst.reqScript(name: string) // coverts to .js
Language Keywords
The JavaScript keywords that were shortened can be fiund in this Link. Any JS keywords that does not appear in the link means that they have no short form and they should be written fully.