1.1.0 • Published 5 months ago

shortscript-main v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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.

1.1.0

5 months ago

1.0.0-stable01

6 months ago

1.0.0-stable1

6 months ago

1.0.0-stable

6 months ago

1.0.0-a1

6 months ago