has-tsconfig

1.0.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.00

Package Sidebar

Install

npm i has-tsconfig

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • guntur