UNPKG

ipfs

Version:

JavaScript implementation of the IPFS specification

12 lines (8 loc) 231 B
'use strict' const os = require('os') const IPFSRepo = require('ipfs-repo') const path = require('path') module.exports = (dir) => { const repoPath = dir || path.join(os.homedir(), '.jsipfs') return new IPFSRepo(repoPath) }