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://github.[redacted]-cli/v0.18.2"
4],
⋯
27},
28"homepage": "https://posthog.com",
29"license": "MIT",
⋯
31"preferUnplugged": true,
32"repository": "https://github.com/PostHog/posthog",
33"scripts": {
⋯
39"aarch64-apple-darwin": {
40"artifactName": "posthog-cli-aarch64-apple-darwin.tar.gz",
41"bins": {
1const {
2createWriteStream,
3existsSync,
⋯
8const { join, sep } = require("path");
9const { spawnSync } = require("child_process");
10const { tmpdir } = require("os");
11
12const https = require("node:ht