Skip to content

code4fukui/SyncJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SyncJS

  • SyncJS is a default await AltJS, basically SyncJS is JavaScript.
  • You can use "promise" function to to use Promise for async execution.
f();
sleep(1000);
const p = promise(f());

await f();
await sleep(1000);
const p = f();

Usage

import syncjs from "https://code4fukui.github.io/SyncJS/syncjs.js";

const src = `
f();
sleep(1000);
const p = promise(f());
`;
console.log(syncjs(src));

Todo

  • a only reserved word "promise" without blackets also

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages