1.0.0 • Published 7 years ago

has-tsconfig v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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