
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
gatsby-query-params
Advanced tools
Get query params of the current URL in Gatsby
npm add gatsby-query-params
import { getSearchParams } from "gatsby-query-params";
const searchParams = getSearchParams();
import { useQueryParam } from "gatsby-query-params";
const value = useQueryParam(key, defaultValue);
import React, {useState, useEffect} from 'react'
import { useQueryParam, getSearchParams } from "gatsby-query-params";
function App() {
const name = useQueryParam("name", "Akash"); // key, defaultValue
console.log(name); // log query param
console.log(getSearchParams()); // Log all parameters
return (
<div>
Hello
</div>
)
}
export default App
npm start
on the root folder.cd example
npm start
Both Client-Side Rendering (CSR) & Server-Side Rendering (SSR) are supported.
LGPLV3 © akash-joshi
FAQs
Get query params of the current URL in Gatsby
The npm package gatsby-query-params receives a total of 145 weekly downloads. As such, gatsby-query-params popularity was classified as not popular.
We found that gatsby-query-params demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.