Socket
Socket
Sign inDemoInstall

bfet

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bfet

Your project description here


Version published
Weekly downloads
3
decreased by-50%
Maintainers
1
Install size
875 kB
Created
Weekly downloads
 

Readme

Source

bfet

A thin minimal wrapped around http|https NodeJS module for NodeJS and browser.

Features

bfet supports sending GET and POST request method for both HTTP and HTTPS with an option to parse response as JSON or just simple string. Support Promise as return.

Install

Install it via npm install bget

Usage

GET Request

bfet.get("https://targetdomain.com")

bfet.get("https://targetdomain.com?myanswer=1")

bfet.get("https://targetdomain.com", { myanswer: 1 })

bfet.get("https://targetdomain.com", { myanswer: 1 }, { json_parse: false })

POST Request

bfet.post("https://targetdomain.com", { myanswer: 1 })

bfet.post("https://targetdomain.com", { myanswer: 1 }, { json_parse: false })

Development

  • npm run build - to create a bundle files in ./dist directory
  • npm test - to run tests for both NodeJS and browser
  • npm run http-and-watch - to build, start local http-server and watch changes on file for live reloading

Misc

This project is based on https://github.com/haxpor/basejit

License

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Keywords

FAQs

Last updated on 09 Feb 2017

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc