🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

watch-drive

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watch-drive

Watch a Hyperdrive or a Localdrive and get the diff

latest
Source
npmnpm
Version
2.0.3
Version published
Maintainers
1
Created
Source

watch-drive

Watch a Hyperdrive or a Localdrive and get the diff

npm install watch-drive

Usage

const watch = require('watch-drive')

// returns a readable stream
const w = watch(drive, prefix)

for await (const { diff } of w) {
  for (const { type, key } of diff) {
    // type is either 'update' or 'delete'
    // key is the key that changed
    console.log(type, key)
  }
}

License

Apache-2.0

FAQs

Package last updated on 15 Oct 2024

Did you know?

Socket

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.

Install

Related posts