Buckets:
3.85 GB
70,867 files
Updated 17 days ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| dist | 6 items | ||
| package.json | 1.64 kB xet | 5fc70c63 | |
| README.md | 2.22 kB xet | f5c03d01 | |
| LICENSE | 1.08 kB xet | 9886cea4 |
TSConfig
Resolve and parse tsconfig.json, replicating TypeScript's behaviour.
Usage
See the TypeScript docs for information on setting up tsconfig.json.
API
- resolve(cwd: string, path?: string): Promise<string | void> Resolve
tsconfig.json, like TypeScript, allowing a path to be specified and falling back to recursively resolvingtsconfig.jsonupward when no path is specified. - resolveSync(cwd: string, path?: string): string | void Synchronous
resolve. - find(cwd: string): Promise<string | void> Standalone behaviour of recursively resolving
tsconfig.jsonupward. - findSync(cwd: string): string | void Synchronous
find. - load(cwd: string, path?: string): Promise<{ path?: string, config: any }> Resolve, load and parse
tsconfig.json. - loadSync(cwd: string, path?: string): { path?: string, config: any } Synchronous
load. - readFile(filename: string): Promise Read a JSON file as
tsconfig.json(strip BOM, parse JSON and support empty contents). - readFileSync(filename: string): any Synchronous
readFile. - parse(contents: string, filename: string): any Parse file contents as
tsconfig.json(strip BOM, parse JSON and support empty contents).
Contributing
Feel free to open issues for discussion.
# Install dependencies/typings.
npm install
# Run test suite.
npm test
License
MIT License
- Total size
- 3.85 GB
- Files
- 70,867
- Last updated
- Nov 3
- Pre-warmed CDN
- US EU US EU