digitalbazaar / jsonld.js

A JSON-LD Processor and API implementation in JavaScript
https://json-ld.org/
Other
1.65k stars 195 forks source link

How can I use the normalize() functionality without using internet . #491

Open SethiShivam opened 2 years ago

SethiShivam commented 2 years ago

Hi Team , I am trying to use the normalize functionality to Normalize the proof and it requires to access the environment .

But I want to achieve this without using internet , due to securities issue ,

Could someone please help me with that ?

Best Regards Sethi Shivam

davidlehn commented 2 years ago

You can pass in a custom documentLoader param that handles URLs in a custom way. For instance, returning static data or data loaded from local files.

SethiShivam commented 2 years ago

thanks alot @davidlehn , Is there any example or documentation available to see it in more details .

Like how to load it and pass it as parameter in normalization

dmitrizagidulin commented 1 year ago

@SethiShivam - here's an example of a documentLoader setting up static (usable without internet) URLs - https://github.com/digitalbazaar/vpqr/blob/main/test/loader.js