# non-memory-map

> A persistent map that does not use much RAM

Latest version **1.0.3** (published 2016-07-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install non-memory-map
pnpm add non-memory-map
yarn add non-memory-map
bun add non-memory-map
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2016-07-10 |
| First published | 2016-07-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | SwadicalRag |
| Maintainers | swadicalrag |

## Links

- npm: https://www.npmjs.com/package/non-memory-map
- Repository: https://github.com/SwadicalRag/node-non-memory-map
- Homepage: https://github.com/SwadicalRag/node-non-memory-map#readme
- Issues: https://github.com/SwadicalRag/node-non-memory-map/issues
- npm.io page: https://npm.io/package/non-memory-map

## Dependencies (3)

- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [deepcopy](https://npm.io/package/deepcopy.md) ^0.6.3
- [node-lmdb](https://npm.io/package/node-lmdb.md) ^0.4.1

## Recent versions

- 1.0.3 (latest) — 2016-07-10
- 1.0.2 — 2016-07-09
- 1.0.1 — 2016-07-09
- 1.0.0 — 2016-07-08

## README

# node-non-memory-map
A map object that doesn't use RAM: for really large big huge amounts of data

## Installation: 
```
npm install non-memory-map --save
```

## Example Usage: 
```typescript

import {NonMemoryMap} from "non-memory-map";

let map = new NonMemoryMap({
    path: __dirname,
    size: 2 * 1024 * 1024 // 2 MB
})

map.set("isBananaGreat",true)

map.set("bananaData",{
    color: "yellow",
    isAwesome: true,
    bananaLordData: {
        name: "swadical",
        isAwesome: "maybe"
    }
})

console.log(map.get("isBananaGreat")) // -> "true"
console.log(map.get("bananaData").get("color")) // -> "yellow"
console.log(map.get("bananaData").get("bananaLordData").get("name")) // -> "swadical"

```

---
_Source: https://npm.io/package/non-memory-map · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
