{"id":20225671,"url":"https://github.com/purescript/npm-installer","last_synced_at":"2025-04-10T17:06:02.522Z","repository":{"id":34923341,"uuid":"190897889","full_name":"purescript/npm-installer","owner":"purescript","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-26T18:30:15.000Z","size":151,"stargazers_count":10,"open_issues_count":12,"forks_count":13,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-29T21:05:40.572Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purescript.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}},"created_at":"2019-06-08T14:33:18.000Z","updated_at":"2023-10-06T14:08:16.000Z","dependencies_parsed_at":"2023-01-15T10:28:55.917Z","dependency_job_id":null,"html_url":"https://github.com/purescript/npm-installer","commit_stats":{"total_commits":57,"total_committers":8,"mean_commits":7.125,"dds":"0.33333333333333337","last_synced_commit":"01f515e8f31637b64aa02f370c81cc19f0b1cc7c"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript%2Fnpm-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript%2Fnpm-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript%2Fnpm-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript%2Fnpm-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purescript","download_url":"https://codeload.github.com/purescript/npm-installer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247927890,"owners_count":21019612,"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-14T07:14:18.971Z","updated_at":"2025-04-10T17:06:02.502Z","avatar_url":"https://github.com/purescript.png","language":"JavaScript","readme":"# purescript-installer\n\nA command-line tool to install [PureScript](https://github.com/purescript/purescript) to the current working directory\n\n1. First, it checks if a PureScript binary has been already cached in a disk, and restores that if available\n2. The second plan: if no cache is available, it downloads a prebuilt binary from [the PureScript release page](https://github.com/purescript/purescript/releases).\n3. The last resort: if no prebuilt binary is provided for the current platform or the downloaded binary doesn't work correctly, it downloads [the PureScript source code](https://github.com/purescript/purescript/tree/master) and compile it with [Stack](https://docs.haskellstack.org/).\n\n*In most cases users don't need to install this CLI directly, but would rather use the [`purescript` npm package](https://npmjs.com/package/purescript).*\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install purescript-installer\n```\n\n## CLI\n\nOnce this package is installed to the project directory, users can execute `install-purescript` command inside [npm scripts](https://docs.npmjs.com/misc/scripts#description).\n\n```\nUsage:\ninstall-purescript [options]\n\nOptions:\n--purs-ver \u003cstring\u003e Specify PureScript version\n--name     \u003cstring\u003e Change a binary name\n                        Default: 'purs.exe' on Windows, 'purs' on others\n                        Or, if the current working directory contains package.json\n                        with `bin` field specifying a path of `purs` command,\n                        this option defaults to its value\n--help,             Print usage information\n--version           Print version\n\nAlso, these flags are passed to `stack install` command if provided:\n--dry-run\n--pedantic\n--fast\n--only-snapshot\n--only-dependencies\n--only-configure\n--trace\n--profile\n--no-strip\n--coverage\n--no-run-tests\n--no-run-benchmarks\n```\n\n## Developer Guide\n\nIf you'd like to contribute to this project, here are instructions for testing your changes locally:\n\nCheckout code and create global link to PS installer package:\n```\ngit clone https://github.com/purescript/npm-installer.git\ncd npm-installer\nnpm link\n```\n\nCreate another project for testing, and add linked PS installer:\n```\ncd ..\nmkdir test-installer\ncd test-installer\nnpm init -y\nnpm link purescript-installer\n```\n\nTest PS installer. You may re-run this command without repeating any of the above steps to pick-up new PS installer changes.\n```\nnpx install-purescript\n```\n\n## License\n\n[ISC License](./LICENSE) © 2017 - 2019 Watanabe Shinnosuke\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript%2Fnpm-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurescript%2Fnpm-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript%2Fnpm-installer/lists"}