
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@ms-cloudpack/file-watcher
Advanced tools
An abstraction on the file watching capabilities used in Cloudpack.
const watcher = createWatcher();
watch
. (Returns an unwatch
function.)const unwatch = await watcher.watch({ path: 'path/to/package' }, () => console.log(`package changed`));
unwatch
, or call watcher.dispose
to unsubscribe from all watchers.// Dispose an individual watcher.
await unwatch();
// Dispose all watchers.
await watcher.dispose();
createWatcher
optionstype
('default' | 'fork'
, optional): By default, this will create a watcher in the same thread. Use type: 'fork'
to create the watcher in a forked process.watcher.watch
optionspath
(string
): The absolute root path to be watched.id
(string
, optional): ID for the watch job (defaults to path
). If you call watch
twice using the same id
, subsequent calls will be ignored.watchPaths
(string[]
, optional): Relative paths/globs from the root path. Currently, only negative globs (starting with !
) are supported and will be used to ignore files. Positive globs are ignored - the watcher will watch all files in the root path by default. Defaults are under "@ms-cloudpack/path-utilities" in sourceFilesGlobs
.FAQs
A file watcher abstraction for use with Cloudpack.
The npm package @ms-cloudpack/file-watcher receives a total of 287 weekly downloads. As such, @ms-cloudpack/file-watcher popularity was classified as not popular.
We found that @ms-cloudpack/file-watcher demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.