{"id":18774180,"url":"https://github.com/leny/mpnpm","last_synced_at":"2025-12-14T06:30:15.739Z","repository":{"id":11845085,"uuid":"14402232","full_name":"leny/mpnpm","owner":"leny","description":"My Personal NPM (NPM Lazy Mirror)","archived":false,"fork":false,"pushed_at":"2014-10-08T15:02:14.000Z","size":172,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T07:15:43.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/leny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-14T17:34:36.000Z","updated_at":"2015-04-09T13:06:53.000Z","dependencies_parsed_at":"2022-09-26T18:10:47.739Z","dependency_job_id":null,"html_url":"https://github.com/leny/mpnpm","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fmpnpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fmpnpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fmpnpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leny%2Fmpnpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leny","download_url":"https://codeload.github.com/leny/mpnpm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239680987,"owners_count":19679509,"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-07T19:37:39.851Z","updated_at":"2025-12-14T06:30:15.658Z","avatar_url":"https://github.com/leny.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mpnpm \n\n\u003e My Personal NPM (NPM Lazy Mirror)\n\n* * *\n\n## Warning : this plugin is not maintained anymore\n\n* * *\n\n**mpnpm** is a lazy local mirror/cache for npm.\n\n**mpnpm** is a reinterpretation of the [npm_lazy package from mixu](https://github.com/mixu/npm_lazy).\n\n## How it works ?\n\n**mpnpm** caches metadata \u0026 packages where you install it. By default, metadatas \u0026 packages are cached for 1 hour. You can change this in the config.\n\n## Getting Started\n\n`Clone this repo` or do an `npm install mpnpm`\n\nModify the file `config.json` at the root of mpnpm (see Documentation below), then launch the server with `node bin/server.js`\n\n### Pointing your npm to mpnpm\n\n#### Temporarily\n\n\tnpm --registry http://localhost:54321 install package\n\t\n#### Permanently\n\n\tnpm config set registry http://localhost:54321\n\t\nor add/modify this line in your config file `~/.npmrc` :\n\n\tregistry = http://localhost:54321\n\t\n**Need more help ?** Type `npm help config` or `npm help registry`\n\n## Documentation\n\n**/config.json**\n\n```javascript\n{\n    \"npm\": {\n        \"registry\": \"http://registry.npmjs.org\"\n    },\n    \"cache\": {\n        \"dir\": \".mpnpm\",\n        \"ttl\": 3600000\n    },\n    \"server\": {\n        \"log\": true,\n        \"port\": 54321,\n        \"url\": \"http://localhost:54321\"\n    }\n}\n```\n\n* **npm.registry** is the url of the npm registry which will be called for downloading metadata \u0026 packages\n* **cache.dir** is the name of the directory where will be stored the cached data\n* **cache.ttl** is *time to live* duration of the data in the cache, in milliseconds. By default, the value is one hour (3600000ms).\n* **server.log** is a boolean to (un)activate logging on the server\n* **server.port** is the port of listening for the node server\n* **server.url** is the cache registry url you will call with npm\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Lint your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n\n* **2013/11/15 :** v1.0.0\n\n## TODO\n\nWriting unit tests :) \n\n## License\n\nCopyright (c) 2013 Leny  \nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleny%2Fmpnpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleny%2Fmpnpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleny%2Fmpnpm/lists"}