🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

polyraf

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

polyraf

like rafify, but uses either random-access-file if running in node (or electron) and random-access-web (if running in a browser or similar)

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

FAQs

Package last updated on 01 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts