digitalbazaar / cborld

A Javascript CBOR-LD processor for web browsers and Node.js apps.
https://json-ld.github.io/cbor-ld-spec/
BSD 3-Clause "New" or "Revised" License
18 stars 12 forks source link

Add documentation for documentLoader #4

Closed msporny closed 3 years ago

msporny commented 4 years ago

@mattcollier wrote:

The default documentLoader is used for CLI operations. documentLoader issues are very popular in jsonld related repos. Seems like a word or two about that would be good in the README.md.

OR13 commented 4 years ago

Also, seems like cborld.documentLoader has a different signature than JSON-LD document loader...

uri:string => Buffer<json(document)> vs uri:string => Buffer<json({contextUrl, documentUrl, document})>

dlongley commented 3 years ago

Fixed by PR #34. cborld.documentLoader will be removed.