UNPKG

@jahed/terraform

Version:

A wrapper which downloads and runs Terraform locally via npm.

21 lines (20 loc) 577 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPlatform = getPlatform; function getPlatform() { switch (process.platform) { case "darwin": return "darwin"; case "freebsd": return "freebsd"; case "linux": return "linux"; case "openbsd": return "openbsd"; case "sunos": return "solaris"; case "win32": return "windows"; } throw new Error(`"${process.platform}" platform is not supported by terraform.`); }