
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Grumpy is a NodeJS library which provides a painless way to deal with key-value storage. It's much more efficient than Object/Array hashmaps because it is based off of Javascript's built in Map class.
Most things that you can do with Array
and Map
can be done using Grumpy! Here are a few examples to get you started:
Group
.Groups
into other data structures.Groups
using familiar Array
methods.Groups
using built-in methods.Try it out here: https://npm.runkit.com/grumpy
To use Grumpy in your project, run:
yarn add grumpy
# or "npm install grumpy"
Note: Grumpy requires at least Node v6.4.0
.
Create an instance of Grumpy and manipulate the group. We're going to be assigning key
to value
and fetching and checking it once we've set it.
Example - Getting and setting values
Save file as example.js
const Grumpy = require('grumpy');
const group = new Grumpy();
group.set('key', 'value');
group.get('key'); // returns 'value'
group.has('key'); // returns true
Execute script on the command line
node example.js
FAQs
Painless key-value storage.
We found that grumpy 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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.