tsconf-utils
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

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.

Package Sidebar

Install

npm i tsconf-utils

Weekly Downloads

12

Version

1.4.0

License

MIT

Unpacked Size

15.5 kB

Total Files

7

Last publish

Collaborators

  • luxass