{"id":25162874,"url":"https://github.com/rodnye/onpm","last_synced_at":"2025-10-24T01:30:48.658Z","repository":{"id":130577102,"uuid":"561668071","full_name":"rodnye/onpm","owner":"rodnye","description":"Offline NPM module installer","archived":false,"fork":false,"pushed_at":"2024-08-31T07:53:46.000Z","size":3063,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T22:09:08.886Z","etag":null,"topics":["cache","cli","modules-storage","nodejs","npm","offline"],"latest_commit_sha":null,"homepage":"","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/rodnye.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}},"created_at":"2022-11-04T08:03:45.000Z","updated_at":"2024-08-31T07:53:49.000Z","dependencies_parsed_at":"2023-04-30T07:31:28.656Z","dependency_job_id":"8ef7923b-b127-494d-b3b1-9be9e98736ae","html_url":"https://github.com/rodnye/onpm","commit_stats":null,"previous_names":["rodnye/onpm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodnye%2Fonpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodnye%2Fonpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodnye%2Fonpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodnye%2Fonpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodnye","download_url":"https://codeload.github.com/rodnye/onpm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237901410,"owners_count":19384384,"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":["cache","cli","modules-storage","nodejs","npm","offline"],"created_at":"2025-02-09T03:30:42.223Z","updated_at":"2025-10-24T01:30:48.652Z","avatar_url":"https://github.com/rodnye.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# onpm\n\n[Spanish README](README_es.md)\n\nOffline Npm Manager is a command-line tool that allows you to install and manage NPM modules without an internet connection.\n\n## Getting Started\n\nTo install Offline Npm Manager, run the following command:\n\n```sh\nnpm i -g onpm-cli\n```\n\nOnce installed, you can use the `onpm` command.\n\nTo verify the installation, run:\n\n```sh\nonpm --version\n```\n\n## Why `onpm`?\n\nThis script was primarily created to reduce dependency on an internet connection when installing npm modules. This is especially useful in contexts where internet access is limited or restricted, such as for users in Cuba.\n\nUnlike tools like `pnpm` or `yarn`, which optimize package installation through techniques like symbolic links or shared storage, `onpm` focuses on the ability to operate completely offline. This means you can download and store modules beforehand in a connected environment and then use them in projects without needing internet access. This works with `npm` in background to download the dependencies, ensuring compatibility with existing workflows and tools that rely on the standard `node_modules` layout.\n\n## CLI\n\n### 📥 Download and cache\n\nTo use Offline Npm Manager, you first need to download the required modules. Use the following command:\n\n```sh\nonpm cache [\u003cpackage-spec\u003e ...] [flags]\n```\n\nIf no modules are specified, it will download the modules defined in the `package.json` file.\n\nFor example:\n\n```sh\nonpm cache express\n```\n\nAfter downloading the modules, they will be available for offline installation in other projects.\n\nFlags:\n\n| Flag                      | Description                                           |\n|---------------------------|-------------------------------------------------------|\n| `-P, --save-prod`         | Download only production dependencies                 |\n| `-D, --save-dev`          | Download only development dependencies                |\n| `-f, --force`             | Download all modules ignoring if already cached       |\n\n### 💽 Install a module\n\nTo install the cached modules in your NodeJs project, use the following command:\n\n```sh\nonpm install [\u003cpackage-spec\u003e ...] [flags]\n```\n\nIf no modules are specified, it will install the modules defined in the `package.json` file.\n\nFor example, to install the `express` and `moment` modules:\n\n```sh\nonpm install express moment --save\n```\n\nFlags:\n\n| Flag                 | Description                                           |\n|----------------------|-------------------------------------------------------|\n| `-S, --save`         | Install and add to dependencies in package.json       |\n| `-D, --save-dev`     | Install and add to devDependencies in package.json    |\n| `--no-save`          | Install without adding to package.json                |\n| `-o, --online`       | Install from cache and download missing modules       |\n\n### For more information, run `onpm -h`\n\n## Contributions\n\nContributions are welcome! If you encounter any issues or have improvements in mind, feel free to open a new issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n##\nCreated by Rodny Estrada.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodnye%2Fonpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodnye%2Fonpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodnye%2Fonpm/lists"}