4.0.7 • Published 2 years ago

is-typescript v4.0.7

Weekly downloads
1,030
License
MIT
Repository
github
Last release
2 years ago

is-typescript

is-typescript checks whether a package is built using TypeScript.

Status

CategoryStatus
Versionnpm
DependenciesDavid
Dev dependenciesDavid
BuildGitHub Actions
LicenseGitHub

Installation

$ npm install is-typescript

Quick start

First you need to integrate is-typescript into your application:

const { isTypeScript } = require('is-typescript');

If you use TypeScript, use the following code instead:

import { isTypeScript } from 'is-typescript';

To check whether a package is built using TypeScript, call the isTypeScript function and provide the root directory of the package as parameter:

console.log(await isTypeScript({ directory: '/...' }));
// => true

The package verifies whether the npm package typescript is installed, and whether a tsconfig.json file exists at the given root directory.

Running quality assurance

To run quality assurance for this module use roboter:

$ npx roboter
4.0.7

2 years ago

4.0.6

3 years ago

4.0.5

3 years ago

4.0.4

3 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.0.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.1

5 years ago