Socket
Socket
Sign inDemoInstall

honeybee

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

honeybee

Zero dependency http(s) library for node & modern browsers with: - automatic retry on status code 429 using the Retry-After header, or falling back to exponential backoff - uses native promises internally - JSON by default


Version published
Weekly downloads
20
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Zero dependency http(s) library for node & modern browsers with:

  • automatic retry on status code 429 using the Retry-After header, or falling back to exponential backoff
  • uses native promises internally
  • JSON by default
Examples
//import request from 'honeybee/dom'
import request from 'honeybee/server'

// Get a Google OAuth2 access token
const res = await request({
  method: 'POST',
  url: 'https://www.googleapis.com/oauth2/v3/token',
  contentType: 'form',
  body: {
    refresh_token: '<user_refresh_token>',
    client_id: '<GOOG_OAUTH_CLIENT_ID>',
    client_secret: '<GOOG_OAUTH_CLIENT_SECRET>',
    grant_type: 'refresh_token'
  }
})
console.log('Authorization: Bearer ' + res.body.access_token)

FAQs

Package last updated on 20 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc