1.1.0 • Published 2 years ago
worker-fetch v1.1.0
Worker Fetch for Node
make memory intensive api calls on a separate thread
Install
npm install worker-fetch
yarn add worker-fetch
Usage
import { fetch } from 'worker-fetch'
async const api = ()=>{
const data = await fetch('url')
console.log(data)
}
api()
.catch(err=>console.error(err))
note fetch() takes in same parameters as node-fetch
License
MIT © HRSHDG8