{"id":15211064,"url":"https://github.com/mrmlnc/vscode-config-resolver","last_synced_at":"2025-10-03T03:30:18.970Z","repository":{"id":57394063,"uuid":"82411013","full_name":"mrmlnc/vscode-config-resolver","owner":"mrmlnc","description":"Deprecated. Use «config-profiler».","archived":true,"fork":false,"pushed_at":"2017-05-08T17:13:57.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T06:36:03.113Z","etag":null,"topics":["config","configuration","finder","resolver","vscode","vscode-config-resolver","vscode-extension"],"latest_commit_sha":null,"homepage":"","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/mrmlnc.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":"2017-02-18T19:31:58.000Z","updated_at":"2023-01-28T21:29:09.000Z","dependencies_parsed_at":"2022-09-05T07:31:14.124Z","dependency_job_id":null,"html_url":"https://github.com/mrmlnc/vscode-config-resolver","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmlnc%2Fvscode-config-resolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmlnc%2Fvscode-config-resolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmlnc%2Fvscode-config-resolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrmlnc%2Fvscode-config-resolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrmlnc","download_url":"https://codeload.github.com/mrmlnc/vscode-config-resolver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235069304,"owners_count":18930936,"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":["config","configuration","finder","resolver","vscode","vscode-config-resolver","vscode-extension"],"created_at":"2024-09-28T08:02:48.654Z","updated_at":"2025-10-03T03:30:18.644Z","avatar_url":"https://github.com/mrmlnc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :warning: Deprecated\n\nUse [`config-profiler`](https://github.com/mrmlnc/config-profiler) package.\n\n# vscode-config-resolver\n\n\u003e Find configuration for the current file from provided path, workspace, package or HOME directory.\n\n## Donate\n\nIf you want to thank me, or promote your Issue.\n\n[![Gratipay User](https://img.shields.io/gratipay/user/mrmlnc.svg?style=flat-square)](https://gratipay.com/~mrmlnc)\n\n\u003e Sorry, but I have work and support for plugins requires some time after work. I will be glad of your support.\n\n## Install\n\n```shell\n$ npm i -S vscode-config-resolver\n```\n\n## Why?\n\n  * Because many plugins use similar code.\n  * To simplify work with the configs in plugins.\n\n## Usage\n\n```js\nconst ConfigResolver = require('vscode-config-resolver');\n\nconst configResolver = new ConfigResolver('./path/to/workspace/');\n\nconfigResolver.scan('./path/to/current/file', {}).then((config) =\u003e {\n  console.log(config);\n  // { from: '', json: {} }\n});\n```\n\n## API\n\n#### .scan(filepath, [options])\n\nFind configuration for the current file.\n\n#### options\n\n#### packageProp\n\n  * Type: `String`\n  * Default: `null`\n\nThe property that contains the configuration. Automatically adds the `package.json` file to `options.configFiles`.\n\n#### configFiles\n\n  * Type: `String[]`\n  * Default: `[]`\n\nAn array of files that may contain configuration.\n\n#### editorSettings\n\n  * Type: `Object` or `String`\n  * Default: `null`\n\nConfig from editor preferences. Supports:\n\n  * Path with `~`\n  * Path with `.` or `../` or `/`\n  * Object\n  * Name of predefined config\n\n#### predefinedConfigs\n\n  * Type: `Object`\n  * Default: `{}`\n\nIf `options.editorSettings` contains the name of configuration.\n\n#### parsers\n\n  * Type: `IParser[]`\n  * Default: `js` + `json`\n\n```js\n[\n  { pattern: /.*(json|rc)$/, parser: JSON.parse },\n  { pattern: /.*(js|rc)$/, parser: requireString }\n]\n```\n\n## Changelog\n\nSee the [Releases section of our GitHub project](https://github.com/mrmlnc/vscode-config-resolver/releases) for changelogs for each release version.\n\n## License\n\nThis software is released under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmlnc%2Fvscode-config-resolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrmlnc%2Fvscode-config-resolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrmlnc%2Fvscode-config-resolver/lists"}