# random-access-null

> random-access-storage compliant null writer like a write to /dev/null

Latest version **1.0.0** (published 2018-03-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install random-access-null
pnpm add random-access-null
yarn add random-access-null
bun add random-access-null
```

## 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.0 |
| Published | 2018-03-13 |
| First published | 2018-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Joseph Werle |
| Maintainers | werle |
| Keywords | random, access, storage, null, dev |

## Links

- npm: https://www.npmjs.com/package/random-access-null
- Repository: https://github.com/jwerle/random-access-null
- Homepage: https://github.com/jwerle/random-access-null#readme
- Issues: https://github.com/jwerle/random-access-null/issues
- npm.io page: https://npm.io/package/random-access-null

## Dependencies (1)

- [random-access-storage](https://npm.io/package/random-access-storage.md) ^1.1.1

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-03-13

## README

random-access-null
==================

[random-access-storage][random-access-storage] compliant null writer like a
write to `/dev/null`. All writes are discarded, all reads return a zero
buffer, and all stats return a stat with `size` set to `0`.

## Install

```sh
npm install random-access-null
```

## Usage

```js
var createRandomAccessNull = require('random-access-null')
var storage = createRandomAccessNull()

// empty reads
storage.read(0, 32, function (err, buf) {
  console.log(err, buf) // null <Buffer >
})

// discarded writes
storage.write(32, Buffer.from('hello', function (err) {
  console.log(err) // null
})
```

## License

MIT

[random-access-storage]: https://github.com/random-access-storage/random-access-storage

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