luxass / tsconf-utils

Utilities for working with tsconfig.json files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tsconf-utils

npm version npm downloads

Install

npm install tsconf-utils

Usage

import {
  findTSConfig,
  findTSConfigSync,
  parseTSConfig,
  parseTSConfigSync,
  resolveTSConfig,
  resolveTSConfigSync
} from "tsconf-utils";

// Find tsconfig.json files
const path = await findTSConfig();

// Find tsconfig.json files synchronously
const path = findTSConfigSync();

// Parse tsconfig.json files
const config = await parseTSConfig(path);

// Parse tsconfig.json files synchronously
const config = parseTSConfigSync(path);

// Resolve tsconfig.json files (find and parse)
const config = await resolveTSConfig(path);

// Resolve tsconfig.json files synchronously (find and parse)
const config = resolveTSConfigSync(path);

📄 License

Published under MIT License.

About

Utilities for working with tsconfig.json files

License:MIT License


Languages

Language:TypeScript 98.5%Language:JavaScript 1.5%