scripts.postinstall = node ./install.js
Install-time code downloads an unverified remote native archive, stages it locally, activates an executable path, and exposes it to process execution.
2"artifactDownloadUrls": [
3"https://releases.posthog.com/posthog-cli/v0.19.4",
4"https://github.[redacted]-cli/v0.19.4"
5],
⋯
28},
29"homepage": "https://posthog.com",
30"license": "MIT",
⋯
32"preferUnplugged": true,
33"repository": "https://github.com/PostHog/posthog",
34"scripts": {
⋯
40"aarch64-apple-darwin": {
41"artifactName": "posthog-cli-aarch64-apple-darwin.tar.gz",
1const {
2createWriteStream,
3existsSync,
⋯
8const { join, sep } = require("path");
9const { spawnSync } = require("child_process");
10const { tmpdir } = require("os");