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

@ossiana/node-libcurl

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ossiana/node-libcurl

## Different with Nodejs fetch api * The fingerprint can be customized to look like chrome or firefox ,it modified the BoringSSL extension, set the custom cipher suite with Libcurl ------------

  • 1.5.10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
45
decreased by-71.7%
Maintainers
1
Weekly downloads
 
Created
Source

node-libcurl

Different with Nodejs fetch api

  • The fingerprint can be customized to look like chrome or firefox ,it modified the BoringSSL extension, set the custom cipher suite with Libcurl

Attention by custom ja3 fingerprint!!!

  • ssl support for node-libcurl is provided by boringssl
  • boringssl does not provided the following support
    1. extension support group only support [P-256, P-384, P-521, X25519], but the library was modified to provide dummy support groups, like [ffdhe2048, ffdhe3072] (ja3 is 256,257). if you use them, it may cause an SSL connection error. This depends on whether the server selects these two support groups
    1. ec_point_format (ja3 is ...,0-1-2) only support 0 (uncompressed)
    1. extensions only support (ja3)[0, 65037, 23, 65281, 10, 11, 35, 16, 5, 13, 13172, 18, 30032, 14, 51, 45, 42, 43, 44, 57, 65445, 27, 34, 17513, 28, 41]

support

Build Status

PlatformSupport
Windows (x64)Yes
Windows (x86)No
Windows (arm)No
Ubuntu (x86_64)Yes
MacOS (x86_64)Yes
MacOS (arm64)Yes

How to Install

npm i -g pnpm

pnpm i @ossiana/node-libcurl


Use Sample

import as ES Module

import { LibCurl, fetch, requests } from '@ossiana/node-libcurl'

import as CommonJS Module

const { LibCurl, fetch, requests } = require('@ossiana/node-libcurl')

browser fetch style

fetch("https://xxx.io/api/graphql/").then(e => e.json())

requests style (🔥)

const session = requests.session();

session.setCookie('ua', '123=/1a', '.baidu.com', '/');

const res = await session.get('https://www.baidu.com', {
    headers: {
        "user-Agent": "1"
    }
});
console.log(res.headersMap);
console.log(session.getCookiesMap().get('ua'));
console.log(res.text);

FAQs

Package last updated on 07 Sep 2024

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