Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@wral/sdk-scraper
Advanced tools
The sdk-scraper
is a JavaScript SDK (Software Development Kit) designed to interact with
an API that generates and validates JWTs.
You can install sdk-scraper
package with npm
npm install @wral/sdk-scraper
Import it into your JavaScript or TypeScript project:
import { createClient } from '@wral/sdk-scraper';
Then, you can create a client instance with your configuration:
const config = {
baseUrl: 'YOUR_BASE_URL', // Base URL of your API
apiKey: 'YOUR_API_KEY', // Your API key
};
const client = createClient(config);
After creating the client instance, you can use its methods to interact with the API. Here are some examples:
// Scrape example.com for metadata
let metadata = await client.metadata({ uri: 'https://www.example.com/' });
createClient(config)
Creates a new client instance with the provided configuration.
config
: An object containing API configuration parameters:
baseUrl
: The base URL of the API.apiKey
: Your API key.Returns a client instance with methods for interacting with the API.
api: (path, options = {})
: fetch wrapper for the API.metadata({ uri, agent } = {})
: scrape metadata from an URI, with optional user agentFAQs
A Software Development Kit for working with the Scraper API
The npm package @wral/sdk-scraper receives a total of 90 weekly downloads. As such, @wral/sdk-scraper popularity was classified as not popular.
We found that @wral/sdk-scraper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.