jsonld.js icon indicating copy to clipboard operation
jsonld.js copied to clipboard

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

Open SethiShivam opened this issue 3 years ago • 3 comments

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

SethiShivam avatar Jun 28 '22 12:06 SethiShivam

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.

davidlehn avatar Jun 28 '22 14:06 davidlehn

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

SethiShivam avatar Jun 29 '22 09:06 SethiShivam

@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

dmitrizagidulin avatar Jul 29 '22 18:07 dmitrizagidulin