
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
A pure JavaScript browser-friendly api for using dat.
var dat = new Dat([options])Creates a new dat object. The options passed here will be default for any dats created using the add method.
options: any options you can pass to mafintosh/hyperdrive or karissa/hyperdiscovery. These options will become default for all dats.dat.add(key, [options], [onrepo])Adds a new dat with the given key. Joins the appropriate swarm for that key and begins to upload and download data. The onrepo function will be called when the dat is finished being created.
key: the path on the filesystem to store dataoptions: These options will override any options given in the Dat constructor.dat.reposArray of repo instances
The repo object managed by dat.
repo.keyThe key of the repo
repo.resume()Joins the swarm for the repository, beginning to find peers in the network to share with.
repo.pause()Pause syncing. This disconnects from any peers currently syncing data with the repo.
repo.destroy()Destroys the swarm and underlying database.
repo.swarmGet to the original discovery-swarm instance, where the swarm can be managed.
repo.archiveGet to the original hyperdrive archive instance, where files can be managed using that api.
repoFired every time a new repo is ready.
closeFired when dat is finished closing, including swarm and database.
FAQs
a javascript dat api
We found that dat-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.