Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

load-tsconfig

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load-tsconfig

Load tsconfig.json

  • 0.2.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1.4M
decreased by-15.04%
Maintainers
1
Weekly downloads
 
Created
Source

💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub.


load-tsconfig

npm version npm downloads

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

Install

npm i load-tsconfig

Usage

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:

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

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

Sponsors

sponsors

License

MIT © EGOIST

FAQs

Package last updated on 19 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc