Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iguntur/has-tsconfig

Indicates whether the project has tsconfig.json file.
https://github.com/iguntur/has-tsconfig

ts tsconfig typescript utilities

Last synced: about 12 hours ago
JSON representation

Indicates whether the project has tsconfig.json file.

Awesome Lists containing this project

README

        

# has-tsconfig [![Build Status](https://travis-ci.org/iguntur/has-tsconfig.svg?branch=master)](https://travis-ci.org/iguntur/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
```

```js
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](http://iguntur.starmediateknik.com)