4.0.7 • Published 4 years ago
is-typescript v4.0.7
is-typescript
is-typescript checks whether a package is built using TypeScript.
Status
| Category | Status |
|---|---|
| Version | |
| Dependencies | |
| Dev dependencies | |
| Build | |
| License |
Installation
$ npm install is-typescriptQuick 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: '/...' }));
// => trueThe 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