Skip to content

javan/gatemaker

Repository files navigation

Gatemaker

macOS quarantine utilities for Node.js and Electron.

Usage

const quarantine = require("gatemaker")

const filePath = "~/Downloads/example.xyz"
const agentName = "Example App"

await quarantine(filePath, agentName)
// or…
quarantine.sync(filePath, agentName)

Electron Support

Load gatemaker/electron-setup in your main process to quarantine all downloads automatically.

require("gatemaker/electron-setup")
const { app } = require("electron")
// …

References