Socket
Socket
Sign inDemoInstall

@visulima/tsconfig

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visulima/tsconfig

Find and/or parse the tsconfig.json file from a directory path.


Version published
Weekly downloads
618
decreased by-10.04%
Maintainers
0
Weekly downloads
 
Created
Source

visulima tsconfig

Find and / or parse the tsconfig.json file from a directory path, this package is built on top of

@visulima/fs, @visulima/path, jsonc-parser and resolve-pkg-maps



Daniel Bannert's open source work is supported by the community on GitHub Sponsors


Install

npm install @visulima/tsconfig
yarn add @visulima/tsconfig
pnpm add @visulima/tsconfig

Usage

findTsConfig

Retrieves the TsConfig by searching for the "tsconfig.json" file from a given current working directory.

import { findTsConfig } from "@visulima/tsconfig";

const tsconfig = await findTsConfig(); // => { path: "/Users/../Projects/visulima/packages/tsconfig/tsconfig.json", config: { compilerOptions: { ... } } }

writeTsConfig

Writes the provided TypeScript configuration object to a tsconfig.json file.

import { writeTsConfig } from '@visulima/package';

writeTsConfig({ compilerOptions: { ... } }/* ,{ cwd: "./" }*/);

readTsConfig

Reads the TypeScript configuration from a tsconfig.json file.

import { readTsConfig } from "@visulima/package";

const tsconfig = await readTsConfig("/Users/../Projects/visulima/packages/tsconfig.json" /* { tscCompatible: false } */);

tscCompatible: If true, the configuration will be parsed in a way that is compatible with the TypeScript compiler.

  • get-tsconfig - Get the TypeScript configuration from a project.

Supported Node.js Versions

Libraries in this ecosystem make the best effort to track Node.js’ release schedule. Here’s a post on why we think this is important.

Contributing

If you would like to help take a look at the list of issues and check our Contributing guidelines.

Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Credits

License

The visulima tsconfig is open-sourced software licensed under the MIT

Keywords

FAQs

Package last updated on 05 Oct 2024

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