# limelock

> Limelock data storage and integrity library for Node JS

Latest version **0.0.2** (published 2018-06-28) · MIT license · 0 weekly downloads

## Install

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

## 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.0.2 |
| Published | 2018-06-28 |
| First published | 2018-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.8 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | limelock.io |
| Maintainers | limelock |
| Keywords | data storage, data integrity, storage, SaaS, file, API, limelock |

## Links

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

## Dependencies (2)

- [delay](https://npm.io/package/delay.md) ^3.0.0
- [request](https://npm.io/package/request.md) ^2.87.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-06-28
- 0.0.1 — 2018-06-27

## README

# limelock-node

<p align="center">
    <img src="https://limelock.io/lime.png"
        height="130">
</p>

[![npm](https://img.shields.io/npm/dw/localeval.svg)](https://www.npmjs.com/package/limelock)


[Limelock](https://limelock.io) library for Node JS

## Installation

```bash
npm i limelock
```

## Usage

```javascript
var Limelock = require('limelock');

(async () => {
  var limelock = new Limelock();

  // login
  await limelock.login('<email>', '<password>');

  // get account information
  console.log(await limelock.me());

  // put some data
  var data = `Hello world! The current time is ${new Date().toLocaleString()}`;
  var putRecord = await limelock.put(data, `${new Date().getTime()}.txt`);
  console.log(putRecord);

  // small delay to allow data to propagate through network
  await delay(1000);

  // get the data
  var getRecord = await limelock.get(putRecord.txId);
  console.log(getRecord);

  var result = Buffer.from(getRecord.data, 'hex').toString();
  console.log(result);
  console.log(data == result ? 'Data verified!' : 'Data error!');

})();

```

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