# pal

> Embedded write-once key-value database

Latest version **0.3.4** (published 2015-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install pal
pnpm add pal
yarn add pal
bun add pal
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.4 |
| Published | 2015-11-30 |
| First published | 2015-11-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=2.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | yes |
| GitHub stars | 1 |
| Maintainers | mtth |

## Links

- npm: https://www.npmjs.com/package/pal
- Repository: https://github.com/mtth/pal
- Homepage: https://github.com/mtth/pal#readme
- Issues: https://github.com/mtth/pal/issues
- npm.io page: https://npm.io/package/pal

## Dependencies (3)

- [nan](https://npm.io/package/nan.md) ^2.1.0
- [tmp](https://npm.io/package/tmp.md) ^0.0.28
- [avsc](https://npm.io/package/avsc.md) ^3.1.0

## Recent versions

- 0.3.4 (latest) — 2015-11-30
- 0.3.3 — 2015-11-30
- 0.3.2 — 2015-11-30
- 0.3.1 — 2015-11-29
- 0.3.0 — 2015-11-29
- 0.2.0 — 2015-11-28
- 0.1.4 — 2015-11-27
- 0.1.3 — 2015-11-27
- 0.1.2 — 2015-11-27
- 0.1.1 — 2015-11-27
- 0.1.0 — 2015-11-27
- 0.0.2 — 2015-11-13

## README

# Pal [![NPM version](https://img.shields.io/npm/v/pal.svg)](https://www.npmjs.com/package/pal) [![Build status](https://travis-ci.org/mtth/pal.svg?branch=master)](https://travis-ci.org/mtth/pal)

Key-value database inspired by [PalDB](https://github.com/linkedin/PalDB).


## Installation

```bash
$ npm install pal
```

`pal` is compatible with all [node.js][] versions above `2.0`.


## Documentation

+ [API](https://github.com/mtth/pal/wiki/API)


## Examples

```javascript
var pal = require('pal');
```

+ Create a database:

  ```javascript
  var ws = pal.Db.createWriteStream('sample.pal')
  ws.write({key: 12, value: 'twelve'})
  ws.write({key: 48, value: 'forty-eight'})
  ws.end();
  ```

+ Load a database and retrieve values:

  ```javascript
  var db = new pal.Db('sample.pal');
  var str = db.get(48); // 'forty-eight'
  ```


[node.js]: https://nodejs.org/en/

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