git ssb

0+

Dominic / polyraf



Branch:
Dominic Tarr committed 1.1.0Latest: ccc84c5 on 6/1/2019, 4:04:39 PM
📄LICENSE
📄README.md
📄browser.js
📄index.js
📄package.json
README.md

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

Built with git-ssb-web