Looks cool, but how is it different from fetch or axios?
The poke library also support listen to difference events, and easy access to stream : )
E.g
// Using callback poke(hostname , pokeOptions) // listen to response retrived .on('response', result => { console.log(result) }) // on chunk is recieved .on('data', (chunk) => { // handle your data here console.log(d) }) // on request eneded .on('end', () => { console.log('Request is finished') }) // listening to error .on('error', (result) => { // handle error console.log(result.error) })
e.g 2
// get image poke('https://via.placeholder.com/100x100') // write data as an image file .pipe(fs.createWriteStream('image.png'))
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Looks cool, but how is it different from fetch or axios?
The poke library also support listen to difference events,
and easy access to stream : )
E.g
e.g 2