Manages all of your dats on a single machine.
Creates a new manager instance. Any saved dats that are marked as 'active' will automatically join their swarm and start sharing data unless start is false.
location: the location on the local filesystem to store the data. defaults topath.resolve('dats')db: the levelup database instance for the manager.datdb: the levelup database instance for dat.start: default totrue
Will create a dat link and share the given local filesystem location. It also joins the dat swarm and begins sharing it.
Calls the callback with cb(err, dat)
Starts sharing a dat with the given key. If the dat doesn't exist with that key, it creates a new one and begins downloading it.
link: the link to use. If not provided, will use the one that is stored.location: the location to store the data.
Stops sharing the dat on the swarm.
Get the metadata for the dat.
List all dats and their metadata.
Deletes a dat from the system. If currently sharing the dat, will stop sharing it.
Closes all of the swarm and database connections.