
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
gatsby-plugin-use-query-params
Advanced tools
Drop in support for [`use-query-params`](https://www.npmjs.com/package/use-query-params)
Drop in support for use-query-params
npm install use-query-params gatsby-plugin-use-query-params
In gatsby-config.js
:
module.exports = {
plugins: [
...otherPlugins,
"gatsby-plugin-use-query-params",
],
};
use-query-params
package as usual. Here is its documentation.import React from "react";
import { useQueryParam, NumberParam, StringParam } from "use-query-params";
const UseQueryParamExample = () => {
// something like: ?x=123&foo=bar in the URL
const [num, setNum] = useQueryParam("x", NumberParam);
const [foo, setFoo] = useQueryParam("foo", StringParam);
return (
<div>
<h1>num is {num}</h1>
<button onClick={() => setNum(Math.random())}>Change</button>
<h1>foo is {foo}</h1>
<button onClick={() => setFoo(`str${Math.random()}`)}>Change</button>
</div>
);
};
export default UseQueryParamExample;
MIT
FAQs
Drop in support for [`use-query-params`](https://www.npmjs.com/package/use-query-params)
The npm package gatsby-plugin-use-query-params receives a total of 6,257 weekly downloads. As such, gatsby-plugin-use-query-params popularity was classified as popular.
We found that gatsby-plugin-use-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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.