{"id":18763600,"url":"https://github.com/iguntur/read-tsconfig-up","last_synced_at":"2025-12-06T03:30:12.439Z","repository":{"id":57348595,"uuid":"162378887","full_name":"iguntur/read-tsconfig-up","owner":"iguntur","description":"Find up and read tsconfig","archived":false,"fork":false,"pushed_at":"2018-12-19T03:41:21.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-25T06:23:23.396Z","etag":null,"topics":["config","find","path","read","settings","tsc","tsconfig","typescript","up"],"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/iguntur.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":"2018-12-19T03:39:30.000Z","updated_at":"2018-12-19T03:44:31.000Z","dependencies_parsed_at":"2022-08-31T18:02:53.128Z","dependency_job_id":null,"html_url":"https://github.com/iguntur/read-tsconfig-up","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/iguntur%2Fread-tsconfig-up","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iguntur%2Fread-tsconfig-up/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iguntur%2Fread-tsconfig-up/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iguntur%2Fread-tsconfig-up/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iguntur","download_url":"https://codeload.github.com/iguntur/read-tsconfig-up/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239661835,"owners_count":19676411,"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","find","path","read","settings","tsc","tsconfig","typescript","up"],"created_at":"2024-11-07T18:26:45.650Z","updated_at":"2025-12-06T03:30:12.391Z","avatar_url":"https://github.com/iguntur.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# read-tsconfig-up\n\n[![Travis CI](https://img.shields.io/travis/iguntur/read-tsconfig-up.svg?style=flat-square)](https://travis-ci.org/iguntur/read-tsconfig-up)\n[![node](https://img.shields.io/node/v/read-tsconfig-up.svg?style=flat-square)](#)\n[![npm](https://img.shields.io/npm/v/read-tsconfig-up.svg?style=flat-square)](https://www.npmjs.org/package/read-tsconfig-up)\n[![PRs](https://img.shields.io/badge/PRs-welcome-blue.svg?style=flat-square)](#)\n\n---\n\n## Install\n\n```console\n$ npm install read-tsconfig-up\n```\n\n## Usage\n\n```js\nconst readTsconfigUp = require('read-tsconfig-up');\n\nreadTsconfigUp().then(result =\u003e {\n    console.log(result);\n    /*\n    {\n        tsconfig: {\n            compilerOptions: {\n                outDir: 'dist',\n                // ...\n            }\n        },\n        path: '/path/to/project/tsconfig.json'\n    }\n    */\n});\n\nconsole.log(readTsconfigUp.sync({cwd: './packages/foo'}));\n```\n\n## API\n\n### readTsconfigUp(`options`)\n\n- Params:\n  - `options`: [`\u003cReadOptions\u003e`](#readoptions)\n- Returns: `Promise\u003c{}\u003e`\n\n### readTsconfig.sync(`options`)\n\n- Params:\n  - `options`: [`\u003cReadOptions\u003e`](#readoptions)\n- Returns: `\u003cobject\u003e`\n\n#### `ReadOptions`\n\n- `cwd`: `\u003cstring\u003e` - Directory to start from.\n  - default: `process.cwd()`\n\n\n## Related\n\n- [read-tsconfig](https://github.com/iguntur/read-tsconfig) - Read `tsconfig.json` file.\n- [has-tsconfig](https://github.com/iguntur/has-tsconfig) - Indicates whether the project has `tsconfig.json` file.\n\n\n## License\n\nMIT © [Guntur Poetra](https://github.com/iguntur)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figuntur%2Fread-tsconfig-up","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figuntur%2Fread-tsconfig-up","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figuntur%2Fread-tsconfig-up/lists"}