{"id":20127595,"url":"https://github.com/cube-js/post-installer","last_synced_at":"2025-11-06T10:03:35.446Z","repository":{"id":171321184,"uuid":"647722442","full_name":"cube-js/post-installer","owner":"cube-js","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-08T10:36:24.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-26T18:03:30.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cube-js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-31T11:40:15.000Z","updated_at":"2024-07-08T10:36:16.000Z","dependencies_parsed_at":"2024-11-13T20:36:36.609Z","dependency_job_id":null,"html_url":"https://github.com/cube-js/post-installer","commit_stats":null,"previous_names":["cube-js/post-installer"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/cube-js/post-installer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Fpost-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Fpost-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Fpost-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Fpost-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cube-js","download_url":"https://codeload.github.com/cube-js/post-installer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cube-js%2Fpost-installer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265844747,"owners_count":23837650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T20:22:37.502Z","updated_at":"2025-11-06T10:03:35.369Z","avatar_url":"https://github.com/cube-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @cubejs-infra/post-installer\n\n\u003e Easiest way to download files on post installation step of you npm package.\n\n# Usage example\n\n1. First you need to define `resources` section under coresponding `package.json` file of your package.\n\n\n```json\n{\n    \"resources\": {\n        \"files\": [{\n            \"host\": \"https://github.com/cube-js/cube/releases/download/v${version}/\",\n            \"path\": \"native-${platform}-${arch}-${libc}-${libpython_or_fallback}.tar.gz\",\n        }]\n    }\n}\n```\n\n# Additional\n\n## Constraints\n\nVariables and files supports contstraints, you can define it:\n\n```\n  \"constraints\": {\n    \"platform\": [\n      \"linux\"\n    ],\n    \"arch\": [\n      \"x64\"\n    ]\n  }\n```\n\nSupported types:\n\n- platform: `win32` / `darwin` / `linux` / `aix` / `android` / `freebsd` / `openbsd` / `cygwin`\n- arch: `x64` / `arm64`\n- platform-arch: `linux-x64`, etc.\n\n\n## Variables\n\nYou can define and use variables in `path` \u0026 `host`.\n\n```json\n{\n    \"vars\": {\n      \"libpython_or_fallback\": {\n        \"default\": \"fallback\",\n        \"value\": [\n          \"libpython\",\n          [\n            \"3.11\",\n            \"3.10\",\n            \"3.9\"\n          ]\n        ],\n        \"constraints\": {\n          \"platform\": [\n            \"linux\"\n          ],\n          \"arch\": [\n            \"x64\"\n          ]\n        }\n      }\n    },\n}\n```\n\nNext you can use this variable in the url via `/file/${libpython_or_fallback}.tar.gz`\n\n# LICENSE\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcube-js%2Fpost-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcube-js%2Fpost-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcube-js%2Fpost-installer/lists"}