tsconfig

Crates.iotsconfig
lib.rstsconfig
version0.3.1
sourcesrc
created_at2021-04-25 14:51:59.46668
updated_at2024-06-15 11:01:23.768071
descriptionParse .tsconfig configuration files for TypeScript
homepagehttps://github.com/drivasperez/tsconfig
repositoryhttps://github.com/drivasperez/tsconfig
max_upload_size
id389315
size58,054
Daniel Rivas (drivasperez)

documentation

README

Rust

tsconfig

A Rust crate for parsing TypeScript's TSConfig files into a Rust struct.

A TSConfig file in a directory indicates that the directory is the root of a TypeScript or JavaScript project.

The TSConfig file can be either a tsconfig.json or jsconfig.json; both have the same behavior and the same set of config variables. One TSConfig can inherit fields from another if it is specified in the 'extends' field.

Example usage

use tsconfig::TsConfig;
use std::path::Path;
let path = Path::new(&std::env::var("CARGO_MANIFEST_DIR").unwrap())
    .join("test/tsconfig.default.json");
let config = TsConfig::parse_file(&path).unwrap();

Links

Commit count: 36

cargo fmt