Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
hash-multivalue
Advanced tools
Store multiple values per key.
Very inspired from Hash::MultiValue in CPAN.
var hash = HashMultiValue({
foo : ['aaa', 'bbb', 'ccc'],
bar : ['111', '222', '333']
});
hash.foo; //=> 'ccc';
hash.get('foo'); //=> 'ccc';
hash.getAll('foo'); //=> ['aaa', 'bbb', 'ccc']
This is mainly designed for like query parameters and HTTP headers.
'get', 'getAll', 'set', 'add', 'remove', 'clear' and so on are methods for manipulating instance, so you can't access the keys named so directly. Eg:
var hash = HashMultiValue({
foo : ['aaa', 'bbb', 'ccc'],
get : ['111', '222']
});
hash.foo; //=> 'ccc'; (ok)
hash.get; //=> [Function]; (ng)
hash.get('get'); //=> '222' (ok)
FAQs
Store multiple values per key in an object.
The npm package hash-multivalue receives a total of 1 weekly downloads. As such, hash-multivalue popularity was classified as not popular.
We found that hash-multivalue 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.