A client library for the w3name - IPNS over HTTP API. It provides a
convenient interface for creating names, making revisions to name records,
and publishing and resolving them via the HTTP API.
Example
import*asNamefrom'w3name'
constname = awaitName.create()
console.log('Name:', name.toString()) // e.g. k51qzi5uqu5di9agapykyjh3tqrf7i14a7fjq46oo0f6dxiimj62knq13059lt
// The value to publish constvalue = '/ipfs/bafkreiem4twkqzsq2aj4shbycd4yvoj2cx72vezicletlhi7dijjciqpui' constrevision = awaitName.v0(name, value)
// Publish the revision awaitName.publish(revision, name.key)
// Resolve the latest value awaitName.resolve(name)
A client library for the w3name - IPNS over HTTP API. It provides a convenient interface for creating names, making revisions to name records, and publishing and resolving them via the HTTP API.
Example