# load-tsconfig

> Load tsconfig.json

Latest version **0.2.5** (published 2023-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install load-tsconfig
pnpm add load-tsconfig
yarn add load-tsconfig
bun add load-tsconfig
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.5 |
| Published | 2023-03-19 |
| First published | 2022-01-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 0 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | egoist |

## Links

- npm: https://www.npmjs.com/package/load-tsconfig
- npm.io page: https://npm.io/package/load-tsconfig

## Recent versions

- 0.2.5 (latest) — 2023-03-19
- 0.2.4 — 2023-03-19
- 0.2.3 — 2022-01-30
- 0.2.2 — 2022-01-29
- 0.2.1 — 2022-01-26
- 0.2.0 — 2022-01-26
- 0.1.2 — 2022-01-26
- 0.1.1 — 2022-01-26

## README

**💛 You can help the author become a full-time open-source maintainer by [sponsoring him on GitHub](https://github.com/sponsors/egoist).**

---

# load-tsconfig

[![npm version](https://badgen.net/npm/v/load-tsconfig)](https://npm.im/load-tsconfig) [![npm downloads](https://badgen.net/npm/dm/load-tsconfig)](https://npm.im/load-tsconfig)

> Load `tsconfig.json`, light-weight and dependency-free.

## Install

```bash
npm i load-tsconfig
```

## Usage

```ts
import { loadTsConfig } from "load-tsconfig"

const loaded = loadTsConfig(".")

// loaded is null when no tsconfig is found, or:
// loaded.path -> the path to the tsconfig file
// loaded.data -> the merged tsconfig
// loaded.files -> all discovered tsconfig files (via "extends")
```

By default it loads `./tsconfig.json`, but you can use a custom filename:

```ts
loadTsConfig(".", "tsconfig.build.json")
```

Full type documentation: https://paka.dev/npm/load-tsconfig

## Sponsors

[![sponsors](https://sponsors-images.egoist.sh/sponsors.svg)](https://github.com/sponsors/egoist)

## License

MIT &copy; [EGOIST](https://github.com/sponsors/egoist)

---
_Source: https://npm.io/package/load-tsconfig · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
