okdistribute / dat-ls

Small program that lists all the changes in a dat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dat-ls

Small program that lists all the changes in a dat

npm install -g dat-ls

build status

Usage

dat-ls <dat-link>

Here is an example

> dat-ls 8a1b6864f290a1204a3fe048ced34865a24f5fdef4ce3753bab613f66636587d

Dat contains 6 changes

[index] content --> bc65a6a4f93e6d400f94f9bb3f8ef6ae31e2affb14bcf5253819ab12adda8d6e
[dir]   (empty)
[file]  LICENSE (1.08 kB, 1 blocks)
[file]  README.md (145 B, 1 blocks)
[file]  index.js (1.18 kB, 1 blocks)
[file]  package.json (648 B, 1 blocks)

Total content size: 3.05 kB

Per default it'll exit after reading the first snapshot of the change feed. To keep listening for changes use the --live flag

> dat-ls 8a1b6864f290a1204a3fe048ced34865a24f5fdef4ce3753bab613f66636587d --live

You can also have it print out a summary of the size and changes instead of the file list. Use the -s flag to do this

> dat-ls 8a1b6864f290a1204a3fe048ced34865a24f5fdef4ce3753bab613f66636587d -s

License

MIT

About

Small program that lists all the changes in a dat

License:MIT License


Languages

Language:JavaScript 100.0%