npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

fasquest

v3.1.5

Published

A fast node request model, works very similar to `request` module but way faster and no dependencies.

Readme

Fasquest

A fast node request model, works very similar to request module but way faster and no dependencies + it works in the browser!

Install

npm install fasquest

Basic Node Example

const Fasquest = require('fasquest');

var options = {
  uri: 'http://127.0.0.1/',
  resolveWithFullResponse: true
}

Fasquest.request(options).then(res=>{
  console.log('hey look I got a response')
})

Basic Web Example

import Fasquest from "fasquest";
var options = {
  uri: 'http://127.0.0.1/',
  resolveWithFullResponse: true
}

await Fasquest.request(options);

Options

  • uri (string): The URL to make the request to.
  • method (string): The HTTP method to use (default: 'GET').
  • qs (object): An object containing query string parameters to be appended to the URL.
  • headers (object): An object containing request headers.
  • body (string|object): The body of the request. If json is set to true, this should be an object.
  • json (boolean): If true, sets the Content-Type header to application/json and stringifies the body.
  • form (object): An object containing form data. Sets the Content-Type header to application/x-www-form-urlencoded.
  • timeout (number): The number of milliseconds to wait for a response before timing out.
  • resolveWithFullResponse (boolean): If true, the full response object is returned, otherwise only the response body is returned.
  • simple (boolean): If true, only resolves the promise if the status code is 2xx otherwise throws an error.
  • authorization (object): An object containing authorization information. Supports basic and bearer tokens.
  • redirect_max (number): The maximum number of redirects to follow (default: 5).
  • agent (object): An object containing custom HTTP/HTTPS agents.

Example with Options

const Fasquest = require('fasquest');

var options = {
  uri: 'http://127.0.0.1/',
  method: 'POST',
  qs: { key1: 'value1', key2: 'value2' },
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ key: 'value' }),
  json: true,
  form: { key: 'value' },
  timeout: 5000,
  resolveWithFullResponse: true,
  simple: false,
  authorization: { bearer: 'token' },
  redirect_max: 10,
  agent: { http: new http.Agent(), https: new https.Agent() }
}

Fasquest.request(options).then(res=>{
  console.log('Response:', res)
}).catch(err=>{
  console.error('Error:', err)
})

Possible Errors

  • FR_Simple: Thrown when the simple option is true and the response status code is not 2xx.
  • FR_Request_<ErrorName>: Thrown when there is an error with the request. <ErrorName> will be replaced with the specific error name.
  • FR_Request_Timeout: Thrown when the request times out.

Changelog

Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

v3.1.5

v3.1.5

20 November 2024

v3.1.2

18 April 2022

v3.1.1

8 February 2021

  • Fixed bug with urls with : in their path f123cfa

v3.1.0

8 February 2021

  • Default to text/plain if no content type is provided with body dad6486

v3.0.2

5 February 2021

v3.0.1

20 October 2020

  • Fixed issue with timeouts, removed default timeout logic if no timeout is set in options 5113537

v3.0.0

22 September 2020

  • Fixed tests and fixed issue with options being mutated 0e90d84

v2.4.0

14 September 2020

  • added a way to set the agent 25a8521

v2.3.0

11 September 2020

v2.2.0

11 September 2020

  • Update index.mjs e5e037f
  • Added timeout functionality and fixed error message names. 9b7e593

v2.1.2

1 September 2020

  • Added npm publish at the end of postversion 7266053

v2.1.1

1 September 2020

v2.1.0

1 September 2020

v2.0.2

8 July 2020

v2.0.1

8 July 2020

v2.0.0

8 July 2020

  • Added browser es module version c54e7cc

v1.2.3

23 October 2019

  • Protect against response body not being able to be parsed #1
  • 1.2.3 json empty body fix b6f1f07

v1.2.2

12 September 2019

  • 1.2.2 Fixed content-length bug fb48137

v1.2.1

12 September 2019

  • 1.2.1 Fixed content-length bug 00f6b9d

v1.2.0

11 September 2019