cidar
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -19,2 +19,9 @@ /************************************************ | ||
} | ||
module.exports = { file } | ||
async folder (content) { | ||
let lastCid | ||
for await (const entry of importer(content, block, { onlyHash: true, cidVersion: 1, rawLeaves: true, wrapWithDirectory: true })) { | ||
lastCid = entry.cid | ||
} | ||
return `${lastCid}` | ||
} | ||
module.exports = { file, folder } |
{ | ||
"name": "cidar", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1264
30