https://github.com/richienb/sify
Make a promise-style function synchronous.
https://github.com/richienb/sify
Last synced: 3 months ago
JSON representation
Make a promise-style function synchronous.
- Host: GitHub
- URL: https://github.com/richienb/sify
- Owner: Richienb
- License: mit
- Created: 2020-03-13T20:08:38.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-14T05:19:10.000Z (over 4 years ago)
- Last Synced: 2025-09-18T22:30:26.471Z (4 months ago)
- Language: JavaScript
- Size: 159 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Sify [](https://travis-ci.com/Richienb/sify)
Make a promise-style function synchronous.
[](https://npmjs.com/package/sify)
## Install
```sh
npm install sify
```
## Usage
```js
const sify = require("sify");
const got = require("got");
const {body} = sify(got)("https://google.com")
console.log(body)
//=> "..."
```
## API
### sify(input)
#### input
Type: `function`
## Related
- [p-syncy](https://github.com/Richienb/p-syncy) - Resolve a promise synchronously.