0.1.1-unstable.15 • Published 3 years ago
@did-core/did-yaml v0.1.1-unstable.15
@did-core/did-yaml
npm i @did-core/did-yaml --save
Usage
import { factory, DidDocument } from '@did-core/data-model';
import { representation } from '@did-core/did-yaml';
const didDocument: DidDocument = factory.build({
entries: {
'@context': 'https://www.w3.org/ns/did/v1',
id: 'did:example:123',
},
});
const representation: Buffer = await didDocument
.addRepresentation({ 'application/did+yaml': representation })
.produce('application/did+yaml');
0.1.1-unstable.14
3 years ago
0.1.1-unstable.15
3 years ago
0.1.1-unstable.12
3 years ago
0.1.1-unstable.13
3 years ago
0.1.1-unstable.10
3 years ago
0.1.1-unstable.11
3 years ago
0.1.1-unstable.9
3 years ago
0.1.1-unstable.7
3 years ago
0.1.1-unstable.8
3 years ago
0.1.1-unstable.6
3 years ago
0.1.1-unstable.5
3 years ago
0.1.1-unstable.4
3 years ago
0.1.1-unstable.1
3 years ago
0.1.1-unstable.0
3 years ago
0.1.0
3 years ago