Socket
Socket
Sign inDemoInstall

boxrec-requests

Package Overview
Dependencies
65
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    boxrec-requests

make API requests to BoxRec using NodeJS and returns the HTML body


Version published
Weekly downloads
15
increased by275%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

6.1.0 (2022-06-15)

Changed

  • getPersonById method also accepts BoxrecFighterRole type

Readme

Source

BoxRec Requests

npm version Known Vulnerabilities Codacy Badge

This project makes HTTP requests to BoxRec and returns the HTML body.
The main purpose of this project is for other projects to easily make requests and return the HTML.

Installation

yarn add -D boxrec-requests or npm install -D boxrec-requests

Setup

import {BoxrecRequests} from "boxrec-requests";

or

const BoxrecRequests = require("boxrec-requests").BoxrecRequests;

Usage

All responses are promises. It is highly suggested that you log into BoxRec before hand like this

const cookieJar = await BoxrecRequests.login(BOXREC_USERNAME, BOXREC_PASSWORD); // returns a cookieJar (your log in cookie)
await BoxrecRequests.getPersonById(cookieJar, 352); // makes next request as a logged in user

BoxRec returns additional data if you're logged in. It's recommended that you log in.
Store the cookie so you can reuse it to lower the amount of log in requests that you make to BoxRec

Todo

Needs proper CI/CD with E2E tests and not mocks

Keywords

FAQs

Last updated on 16 Jun 2022

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