Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ejnshtein/smol-request

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ejnshtein/smol-request - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

package.json
{
"name": "@ejnshtein/smol-request",
"version": "1.0.7",
"version": "1.0.8",
"description": "Tiny http/https request wrapper for Node.js using ESM (13.5 and newer)",

@@ -5,0 +5,0 @@ "main": "Request.js",

@@ -67,5 +67,17 @@ # Smol Request

OR you can get only headers without parsing body from request using `responseType: 'headers'`
### Headers
You can get only headers without parsing body from request using `responseType: 'headers'`
```js
request('https://picsum.photos/200/300', { responseType: 'headers' })
.then(({ headers }) => {
console.log('Picture location - ', headers.location)
})
```
# Example
There are a few examples in `example` folder in the [repo](https://github.com/ejnshtein/smol-request/tree/master/example).
# API

@@ -72,0 +84,0 @@

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