GPTScript / AiScript

A Minimal, Full-Stack, Tool-Assisted Language. Native to Browsers and Bun. Strictly & Strongly-Typed.
https://github.com/GPTScript/AiScript
Mozilla Public License 2.0
9 stars 1 forks source link

Auto-import dependencies #24

Open coolaj86 opened 2 years ago

coolaj86 commented 2 years ago

If the tooling sees that you're using any of the AjScript std library, such as Promise._sleep, it should be imported automatically:

  "use strict";
+ require('ajscript');

  let n = Math._randomInt(0, 100);
  console.log(n);