New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dreamscript

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dreamscript

an OpenSource superset of JavaScript that compiles to clean JavaScript output.

  • 0.0.1
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

DreamScript

DreamScript is an OpenSource superset of JavaScript that compiles to clean JavaScript output.

[License

NPM

DS Installation

  • Install NodeJs
  • Open your Console
  • Install globally using NPM

npm install -g dreamscript

  • or as a library

npm install --save dreamscript

  • or install with npx

npx dreamscript

Put the dreamscript.exe in C:\Users\ASUS\AppData\Roaming\npm

Get Started

  • Command
~$ dreamscript run <your file or directory file>
atau
~$ dreamscript cmp <your file or directory file>
atau

for any command, you can see at:
~$ dreamscript -h
  • Directory

Example

.
├── code
└── lib
    ├── index.ds
    └── code.ds

$ dreamscript dir code lib

this command will compile all files in the lib folder and write the compilation results to the code folder with the same name and the extension js

.
├── code
│   ├── index.js
│   └── code.js
└── lib
    ├── index.ds
    └── code.ds

Example Compile

const ds = require("dreamscript");

var code = `
    func ds(){
        write("hello, world");
    }
    ds();
`;

// compile code
ds.compile(code).then(compiled => {
    console.log(compiled);
});

Example Run

const ds = require("dreamscript");

var code = `
    func ds(){
        write("hello, world");
    }
    ds();
`;

;(async () => {

// run code
await ds.run(code)
});

Difference Syntax

DreamScriptJavaScript
func()function()
write()console.log()
type{}class{}
struct()constructor()

CREDITS

Keywords

FAQs

Package last updated on 20 Oct 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc