# @ddatabase/default-storage

> Default storage provider for dDatabase.

Latest version **1.0.1** (published 2021-03-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ddatabase/default-storage
pnpm add @ddatabase/default-storage
yarn add @ddatabase/default-storage
bun add @ddatabase/default-storage
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-03-10 |
| First published | 2021-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | PeepsLabs |
| Maintainers | dwebprotocol |

## Links

- npm: https://www.npmjs.com/package/@ddatabase/default-storage
- Repository: https://github.com/dwebprotocol/@ddatabase/default-storage
- Homepage: https://dwebx.org
- Issues: https://github.com/dwebprotocol/@ddatabase/default-storage/issues
- npm.io page: https://npm.io/package/@ddatabase/default-storage

## Dependencies (2)

- [fd-lock](https://npm.io/package/fd-lock.md) ^1.0.2
- [random-access-file](https://npm.io/package/random-access-file.md) ^2.1.3

## Recent versions

- 1.0.1 (latest) — 2021-03-10
- 1.0.0 — 2021-03-05

## README

# @ddatabase/default-storage

Default storage provider used by dDatabase

```
npm install @ddatabase/default-storage
```

## Usage

``` js
const defaultStorage = require('@ddatabase/default-storage')

const feed = ddatabase(name => defaultStorage(name, { directory: 'feed' }))
```

## API

#### `storage = defaultStorage(name, [options])`

Makes a new random-access-storage provider using the random-access-file module.

If making a bitfield file that file will be locked to avoid parallel writers.

## License

MIT

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