{"id":22433581,"url":"https://github.com/gavinning/vpm-config","last_synced_at":"2025-03-27T07:45:41.531Z","repository":{"id":34768494,"uuid":"38750575","full_name":"gavinning/vpm-config","owner":"gavinning","description":"用于获取设置配置项","archived":false,"fork":false,"pushed_at":"2018-06-27T12:25:08.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T16:03:24.709Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gavinning.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}},"created_at":"2015-07-08T11:43:04.000Z","updated_at":"2018-06-27T12:25:09.000Z","dependencies_parsed_at":"2022-09-15T06:22:19.592Z","dependency_job_id":null,"html_url":"https://github.com/gavinning/vpm-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fvpm-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fvpm-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fvpm-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinning%2Fvpm-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavinning","download_url":"https://codeload.github.com/gavinning/vpm-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806390,"owners_count":20675296,"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-12-05T22:15:21.332Z","updated_at":"2025-03-27T07:45:41.512Z","avatar_url":"https://github.com/gavinning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Config\n\n配置文件管理\n\n\n### Install\n\n```sh\nnpm i vpm-config\n```\n\n\n### Usage\n```javascript\nconst Config = require('vpm-config')\nconst config = new Config({})\n```\n### Example\n```javascript\nconfig.set('dev.db.username', 'root')\nconfig.set('dev.db.password', 'root')\n\nconfig.get('dev.db.username')\nconfig.get('dev.db.password')\n```  \n\n```js\nconfig.merge({\n    app: {\n        name: 'name',\n        logo: 'logo',\n        tags: [1,2,3],\n        mods: {\n            foo: 'bar'\n        }\n    }\n})\n\nconfig.get('app.name')\nconfig.get('app.mods.foo')\n```\n\n```js\nconfig.merge('app.mods', {\n    bar: 'foo'\n})\n\nconfig.get('app.mods')\n```\n\n\u003e npm run test","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fvpm-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinning%2Fvpm-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinning%2Fvpm-config/lists"}