1.3.1 • Published 4 years ago

synchronify v1.3.1

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

SYNChronify

This will turn any async function into a sync function.

Usage (Example: HardTTP module by me(TudbuT)):

const synchronify = require("synchronify");

function someSyncFunction() {
  return synchronify(async () => {
    const {get} = require("hardttp");
    //NOTE: The function MUST require all dependencies itself!
    
    return await get("http://tudbut.glitch.me");
  })
}

console.log(someSyncFunction());
//Logs the contents of the website tudbut.glitch.me
1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago