dat-node icon indicating copy to clipboard operation
dat-node copied to clipboard

Merge with dat-node?

Open pfrazee opened this issue 7 years ago • 2 comments

@joehand and I are questioning whether this module and https://www.npmjs.com/package/dat-node can be combined, because some of the work here (managing multiple dats, handling multiple dat types) is generally useful.

In this issue, we'll discuss what a merge would require. Let's keep a running list in the description.

Required changes

  • [ ] A way to request the Web APIs vs the Hyper* APIs. (eg DatArchive vs hyperdrive())
  • [ ] Configurable dat-storage, to remain compatible with existing dat-node

pfrazee avatar Jul 06 '18 19:07 pfrazee

Another point I forgot was node <8 compatibility for the CLI =(

We could require that node v6 users install the binary instead (for example, that is what now.sh does) or provide another alternative.

joehand avatar Jul 06 '18 19:07 joehand

Hmm we could also look into a transpiler

pfrazee avatar Jul 06 '18 19:07 pfrazee