Huge News!Announcing our $40M Series B led by Abstract Ventures.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

DreamScript is a Programming Language That Makes It Easy For You To Code Or Develop Your Web Application

  • 0.0.2
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

DreamScript

DreamScript is a Programming Language That Makes It Easy For You To Code Or Develop Your Web Application

[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

  • or you can install the compiler :

Here

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

DOCS

Full Docs, you can see at :

https://zsofttt.github.io/DreamScript

CHANGE LOG

Version 0.0.2 :

  • Fix Many Bugs
  • Add yesno() function
  • Add schemaMongoDB() function
  • Add modelMongoDB() function
  • Delete ds.ConnectMongoDB() function at program/main.js , but Add the connectMongoDb() function on DreamScript Code
  • Delete ds.CreateApp() function at program/main.js , but Add the createApp function on DreamScript Code
  • Delete ds.CreateServer() function at program/main.js , but Add the createServer function on DreamScript Code
  • Delete ds.Get() function at program/main.js , but Add the GET() function on DreamScript Code
  • Delete ds.Post() function at program/main.js , but Add the POST() function on DreamScript Code

CREDITS

Powered By

  • Axios
  • ExpressJS
  • MongoDB (Mongoose)

Keywords

FAQs

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