Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/iguntur/has-tsconfig
- Owner: iguntur
- License: mit
- Created: 2017-04-25T23:44:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-26T01:23:39.000Z (over 7 years ago)
- Last Synced: 2024-08-05T20:29:07.917Z (3 months ago)
- Topics: ts, tsconfig, typescript, utilities
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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');
//=> truehasTsconfig('./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)