Skip to content

Commit

Permalink
Remove 2 require statements from README.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Aug 15, 2024
1 parent cc51441 commit 570347b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Pre-requisites:
Document and Public Key

```js
const vc = require('@digitalbazaar/vc');
import * as vc from '@digitalbazaar/vc';

// Sample unsigned credential
const credential = {
Expand Down Expand Up @@ -477,8 +477,8 @@ Pre-requisites:
// by requiring this first you ensure security
// contexts are loaded from jsonld-signatures
// and not an insecure source.
import * as vc from '@digitalbazaar/vc';
const {extendContextLoader} = require('jsonld-signatures');
const vc = require('@digitalbazaar/vc');
// @digitalbazaar/vc exports its own secure documentLoader.
const {defaultDocumentLoader} = vc;
// a valid json-ld @context.
Expand Down

0 comments on commit 570347b

Please sign in to comment.