{"id":18913777,"url":"https://github.com/ethers-io/hijack-npm-action","last_synced_at":"2025-07-19T16:11:39.778Z","repository":{"id":217783494,"uuid":"630829200","full_name":"ethers-io/hijack-npm-action","owner":"ethers-io","description":"GitHub action to run a faux NPM registry which intercepts select npm packages and injects local versions.","archived":false,"fork":false,"pushed_at":"2023-12-20T07:39:57.000Z","size":72,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-23T08:20:56.246Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ethers-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-04-21T08:44:37.000Z","updated_at":"2023-12-30T21:27:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"b79406b9-d682-4f47-bdfa-e5784ff9a7fc","html_url":"https://github.com/ethers-io/hijack-npm-action","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":"0.19999999999999996","last_synced_commit":"9c15b50c7aab80281481c416b1d251124df594ad"},"previous_names":["ethers-io/hijack-npm-action"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethers-io%2Fhijack-npm-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethers-io%2Fhijack-npm-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethers-io%2Fhijack-npm-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethers-io%2Fhijack-npm-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethers-io","download_url":"https://codeload.github.com/ethers-io/hijack-npm-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239907240,"owners_count":19716584,"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-08T10:08:54.931Z","updated_at":"2025-02-20T20:14:58.388Z","avatar_url":"https://github.com/ethers-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hijack NPM Registry\n===================\n\nCreates a faux NPM registry server, which will intercept select\nnpm install requests, providing unpublished, local packages while\nforwarding all other packages to the official NPM registry.\n\nThis can be used to test how a package will behave once published,\nbefore actually publishing it, including all `pakage.json` imports.\n\nConfiguration\n-------------\n\nThis package was designed to test ethers under various installation\nconditions, so the below example assumes the package being hijacked\n(in the `./faux-npm/ethers/` folder) also contains the tests.\n\n```\nname: Test TypeScript Import\n\non:\n  push:\n    bracnhes:\n      - master\n\njobs:\n\n  test-import-typescript:\n    name: Test Import TypeScript\n\n    runs-on: ubuntu-latest\n    env:\n      npm_config_registry: http://localhost:8043\n\n    steps:\n      - name: Use Node.js\n        uses: actions/setup-node@v1\n        with:\n          node-version: 18.x\n\n      - name: Checkout repository\n        uses: actions/checkout@v3\n        with:\n          path: \"faux-npm/ethers\"\n\n      - name: Install and run Faux Registry\n        uses: ethers-io/hijack-npm-action\n\n      - name: Copy tests to working directory\n        run: cp faux-npm/ethers/testcases/test-env/ts-import/* .\n\n      - name: Install packages\n        run: npm install\n\n      - name: Run tests\n        run: npm test\n```\n\nLicense\n-------\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethers-io%2Fhijack-npm-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethers-io%2Fhijack-npm-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethers-io%2Fhijack-npm-action/lists"}