# polyraf

> like rafify, but uses either [random-access-file](https://github.com/random-access-storage/random-access-file/) if running in node (or electron) and [random-access-web](https://github.com/random-access-storage/random-access-web) (if running in a browser o

Latest version **1.1.0** (published 2019-06-01) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2019-06-01 |
| First published | 2019-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 123.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Dominic Tarr |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/polyraf
- Repository: https://github.com/dominictarr/polyraf
- Issues: https://github.com/dominictarr/polyraf/issues
- npm.io page: https://npm.io/package/polyraf

## Dependencies (2)

- [random-access-web](https://npm.io/package/random-access-web.md) ^2.0.1
- [random-access-file](https://npm.io/package/random-access-file.md) ^2.1.0

## Recent versions

- 1.1.0 (latest) — 2019-06-01
- 1.0.1 — 2019-04-19
- 1.0.0 — 2019-03-24

## README

# polyraf

like rafify, but uses either [random-access-file](https://github.com/random-access-storage/random-access-file/) if running in node (or electron)
and [random-access-web](https://github.com/random-access-storage/random-access-web) (if running in a browser or similar)

``` js
var PolyRAF = require('polyraf')
var raf = PolyRAF(filename) //and if passed a raf instance

var _raf = PolyRAF(raf) //if called with a raf instance, returns it.
//_raf == raf

//also, keeps the filename as a property (non-standard)
console.log(raf.filename)
```

## License

MIT

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