
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Lightweight querystring parse() & stringify() based on URLSearchParams APIs
Lightweight querystring parse & stringify based on URLSearchParams API
npm install qs-native
import qs from 'qs-native';
qs.parse("?a=b&c=d");
//=> { a: "b", c: "d" }
qs.stringify({ a: "b", c: "d" });
//=> "a=b&c=d"
strictNullHandling: boolean - optional
qs.parse("?a=b&c");
//=> { a: "b", c: null }
skipNulls: boolean - optional
qs.stringify({ a: "b", c: null }, { skipNulls: true });
//=> "a=b"
addQueryPrefix: boolean - optional
qs.stringify({ a: "b", c: "d" }, { addQueryPrefix: true });
//=> "?a=b"
For using qs-native in IE11 and other browsers that doesn't support URLSearchParams API install core-js
polyfill https://github.com/zloirock/core-js#url-and-urlsearchparams
CoreJS - CommonJS entry points:
core-js/proposals/url
core-js(-pure)/web/url
core-js(-pure)/web/url-search-params
core-js(-pure)/stable|features/url
core-js/stable|features/url/to-json
core-js(-pure)/stable|features/url-search-params
FAQs
Lightweight querystring parse() & stringify() based on URLSearchParams APIs
The npm package qs-native receives a total of 120 weekly downloads. As such, qs-native popularity was classified as not popular.
We found that qs-native 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.