{"id":18544759,"url":"https://github.com/131/npm-mirror","last_synced_at":"2025-07-03T15:12:03.410Z","repository":{"id":53026246,"uuid":"344560710","full_name":"131/npm-mirror","owner":"131","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-08T11:03:00.000Z","size":62,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T12:37:37.083Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/131.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":"2021-03-04T17:48:28.000Z","updated_at":"2025-04-08T11:03:04.000Z","dependencies_parsed_at":"2025-04-10T12:07:53.568Z","dependency_job_id":null,"html_url":"https://github.com/131/npm-mirror","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/131/npm-mirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Fnpm-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Fnpm-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Fnpm-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Fnpm-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/131","download_url":"https://codeload.github.com/131/npm-mirror/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/131%2Fnpm-mirror/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263348436,"owners_count":23452885,"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-06T20:17:31.106Z","updated_at":"2025-07-03T15:12:03.361Z","avatar_url":"https://github.com/131.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/131/npm-mirror/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/131/npm-mirror/actions/workflows/test.yml)\r\n[![Coverage Status](https://coveralls.io/repos/github/131/npm-mirror/badge.svg?branch=master)](https://coveralls.io/github/131/npm-mirror?branch=master)\r\n[![Version](https://img.shields.io/npm/v/npm-registry-mirror.svg)](https://www.npmjs.com/package/npm-registry-mirror)\r\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\r\n[![Code style](https://img.shields.io/badge/code%2fstyle-ivs-green.svg)](https://www.npmjs.com/package/eslint-plugin-ivs)\r\n\r\n\r\n\r\n\r\n# Motivation\r\n\r\nnpm-registry-mirror is a utility for mirroring a subset of npm packages from another npm registry. It syncs recursively all the required dependencies and writes them to the local filesystem so that a simple webserver can behave like a read-only registry.\r\n\r\nThis module was designed a a drop-in replacement for the no longer maintened \"npm-mirror\" module.\r\n\r\n\r\n\r\n\r\n# Usage\r\n```\r\nnpm install -g npm-registry-mirror\r\n\r\n# Put some packages.json (e.g. rename \u0026 timestamp them) in /some/path/to/manifests/\r\n\r\nnpm-mirror \\\r\n--registry_url=http://myserver.com/npm/       \\\r\n--manifest_directory=/some/path/to/manifests/ \\\r\n--package_directory=/path/to/local/cache/     \\\r\n\r\n```\r\n\r\n## Http server\r\n\r\n```\r\nexport DEBUG=*,-send,-express:*\r\ncnyks . [config_path] --ir://start\r\n\r\n# force curl no buffer\r\ncurl -X POST http://127.0.0.1:8080/process\r\ncat /mnt/r/package.json | curl -X PUT --data-binary @- http://127.0.0.1:8080/feed\r\n\r\n\r\n\r\n```\r\n\r\n# Tests \u0026 dependencies\r\nnpm-mirror relies on a very few but powerfull modules, with 100% coverage \u0026 test.\r\nAll good friend of mine.\r\n\r\n\r\n# Credits\r\n* [131](https://github.com/131)\r\n* [mozilla-b2g/npm-mirror](https://github.com/mozilla-b2g/npm-mirror)\r\n\r\n\r\n# Keywords / shout box\r\nnpm, npm-mirror, registry-mirror, registry, async, \"Let's have a beer and talk in Paris\"\r\n\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F131%2Fnpm-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F131%2Fnpm-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F131%2Fnpm-mirror/lists"}