New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

boxrec-requests

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 6.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
decreased by-34.62%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 16 Jun 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