Socket
Book a DemoInstallSign in
Socket

has-tsconfig

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-tsconfig

Indicate the project has 'tsconfig.json' file.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

has-tsconfig Build Status

Indicates whether the project has tsconfig.json file.

Install

$ npm install --save has-tsconfig

Usage

./dev
├── bar
│   └── package.json
└── foo
    ├── package.json
    └── tsconfig.json
const hasTsconfig = require('has-tsconfig');

hasTsconfig('./dev/foo');
//=> true

hasTsconfig('./dev/bar');
//=> false

API

hasTsconfig(paths)

Returns a boolean value from the given paths.

paths

Type: string
Default: process.cwd()

License

MIT © Guntur Poetra

Keywords

tsconfig

FAQs

Package last updated on 26 Apr 2017

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