0.2.4 • Published 5 years ago

grumpy v0.2.4

Weekly downloads
17
License
MIT
Repository
github
Last release
5 years ago

Grumpy

API | Install | Github

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.

What does Grumpy do?

Most things that you can do with Array and Map can be done using Grumpy! Here are a few examples to get you started:

  • Add/remove sets of values in a scoped Group.
  • Convert Groups into other data structures.
  • Manipulate Groups using familiar Array methods.
  • Fetch values from Groups using built-in methods.
Why should I use Grumpy?
  • Small file size (~1kb).
  • Blazing fast performance.
  • Minimal & intuitive API.

Try it out here: https://npm.runkit.com/grumpy

Getting Started

Installation

To use Grumpy in your project, run:

yarn add grumpy
# or "npm install grumpy"

Usage

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

More Examples

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.8-a

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.5-pre

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago