
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
fast-querystring
Advanced tools
Fast query-string parser to replace the deprecated `node:querystring` parse function.
Fast query-string parser to replace the deprecated node:querystring
parse function.
npm i --save fast-querystring
&
separator as defaultstring
foo=bar&foo=baz
parses into {foo: ['bar', 'baz']}
foo=bar&hey
parses into {foo: 'bar'}
, but node:querystring
returns {foo: 'bar', hey: ''}
const QueryString = require('fast-querystring')
const qs = QueryString.parse('hello=world&foo=bar&values=v1&values=v2')
console.log(qs)
// {
// hello: 'world',
// foo: 'bar',
// values: ['v1', 'v2']
// }
> fast-querystring@0.1.0 benchmark
> node test/benchmark.mjs
╔══════════════════╤═════════╤═══════════════════╤═══════════╤══════════════════════════╗
║ Slower tests │ Samples │ Result │ Tolerance │ Difference with previous ║
╟──────────────────┼─────────┼───────────────────┼───────────┼──────────────────────────╢
║ qs │ 10000 │ 693377.51 op/sec │ ± 3.05 % │ ║
║ query-string │ 10000 │ 719847.15 op/sec │ ± 3.01 % │ + 3.82 % ║
║ node:querystring │ 10000 │ 3197501.34 op/sec │ ± 1.16 % │ + 344.19 % ║
╟──────────────────┼─────────┼───────────────────┼───────────┼──────────────────────────╢
║ Fastest test │ Samples │ Result │ Tolerance │ Difference with previous ║
╟──────────────────┼─────────┼───────────────────┼───────────┼──────────────────────────╢
║ fast-querystring │ 10000 │ 3500432.30 op/sec │ ± 5.57 % │ + 9.47 % ║
╚══════════════════╧═════════╧═══════════════════╧═══════════╧══════════════════════════╝
FAQs
A fast alternative to legacy querystring module
The npm package fast-querystring receives a total of 3,704,579 weekly downloads. As such, fast-querystring popularity was classified as popular.
We found that fast-querystring demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.