1.1.0 • Published 1 year ago

ipfs-mfs-sync v1.1.0

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
1 year ago

js-ipfs-mfs-sync

Synchronize between MFS and the filesystem, pull or push.

import MFSSync from 'ipfs-mfs-sync'
import IPFS from 'ipfs-core'

const ipfs = await IPFS.create()

const sync = new MFSSync(ipfs)

for(const {op, path} of sync.fromFSToMFS('./example', '/mfs-folder')) {
  if(op == 'remove') {
    console.log('Removed file:', path)
  }
}
1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

0.1.0

1 year ago