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

tsconfig

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsconfig

TypeScript project file specification + implementation

  • 1.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.5M
increased by14.16%
Maintainers
2
Weekly downloads
 
Created
Source

TSConfig

NPM version NPM downloads Build status Test coverage

Resolve and parse tsconfig.json, with support for filesGlob (array of glob strings).

Usage

See the TypeScript wiki for information on setting up tsconfig.json. Additionally, this module will parse the filesGlob option, if it exists.

API

  • resolve(dir: string, cb: (err: Error, filename?: string) => any) Aschronously resolve the location of tsconfig.json
  • resolveSync(dir: string): string Synchronous version of resolve
  • load(dir: string, cb: (err: Error, config?: TSConfig) => any) Resolve, load and parse tsconfig.json from a directory
  • loadSync(dir: string): TSConfig Synchronous version of load
  • readFile(filename: string, cb: (err: Error, config?: TSConfig) => any) Read any file as tsconfig.json
  • readFileSync(filename: string): TSConfig Synchronous version of readFile
  • parseFile(contents: string, filename: string, cb: (err: Error, config?: TSConfig) => any) Parse any string using TSConfig
  • parseFileSync(contents: string, filename: string): TSConfig Synchronous version of parseFile
  • resolveConfig(data: TSConfig, filename: string, cb: (err: Error, config?: TSConfig) => any) Resolve a tsconfig.json object against a filename (E.g. filesGlob)
  • resolveConfigSync(data: TSConfig, filename: string): TSConfig Synchronous version of resolveConfig

Contributing

Please open issues for discussion.

License

MIT License

Keywords

FAQs

Package last updated on 08 Oct 2015

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