Beta 7 with some repo names changed.
This commit is contained in:
1 parent
0f7b40cca7
commit
963c19493a
3408 files changed
+462217
-15516
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
'use strict'
|
||||
|
||||
const CID = require('../src')
|
||||
const multihashStr = 'QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB'
|
||||
|
||||
const cidv0 = new CID(multihashStr)
|
||||
|
||||
console.log(cidv0.toBaseEncodedString())
|
||||
|
||||
const cidv1 = cidv0.toV1()
|
||||
|
||||
console.log(cidv1.toBaseEncodedString())
|
||||
Reference in new issue
Block a user