mirror-format

1.0.1 • Public • Published

mirror-format

Formatting for MirrorDrive diffing and count

npm i mirror-format

Usage

const format = require('mirror-format')
const MirrorDrive = require('mirror-drive')

const m = new MirrorDrive(src, dst)

for await (const diff of m) {
  console.log(format.diff(diff))
}

console.log('Total files:', m.count.files, '(' + format.count(m.count) + ')')
console.log('Size change:', format.bytes(m))

image_2024-05-03_19-47-30

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i mirror-format

Weekly Downloads

1

Version

1.0.1

License

Apache-2.0

Unpacked Size

13.9 kB

Total Files

4

Last publish

Collaborators

  • lukks