sify
v1.0.1
Published
Make a promise-style function synchronous.
Downloads
9
Maintainers
Readme
Sify
Make a promise-style function synchronous.
Install
npm install sify
Usage
const sify = require("sify");
const got = require("got");
const {body} = sify(got)("https://google.com")
console.log(body)
//=> "<!doctype html>..."
API
sify(input)
input
Type: function
Related
- p-syncy - Resolve a promise synchronously.