is-typescript
TypeScript icon, indicating that this package has built-in type declarations

4.0.7 • Public • Published

is-typescript

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

Status

Category Status
Version npm
Dependencies David
Dev dependencies David
Build GitHub Actions
License GitHub

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

Readme

Keywords

Package Sidebar

Install

npm i is-typescript

Weekly Downloads

129

Version

4.0.7

License

MIT

Unpacked Size

9.19 kB

Total Files

12

Last publish

Collaborators

  • thenativeweb-admin
  • goloroden