has-tsconfig
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 = ; ;//=> true ;//=> false
API
hasTsconfig(paths)
Returns a boolean value from the given paths
.
paths
Type: string
Default: process.cwd()
License
MIT © Guntur Poetra