🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@istanbuljs/nyc-config-typescript

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
i

@istanbuljs/nyc-config-typescript

nyc configuration that works with typescript

1.0.2
latest
100

Supply Chain Security

100

Vulnerability

76

Quality

82

Maintenance

100

License

Trivial Package

Supply chain risk

Packages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.

Found 1 instance in 1 package

Dependencies have 2 high alerts.

Socket optimized override available

Version published
Weekly downloads
447K
0.38%
Maintainers
5
Weekly downloads
 
Created
Issues
174

What is @istanbuljs/nyc-config-typescript?

@istanbuljs/nyc-config-typescript is a configuration preset for the NYC code coverage tool, specifically tailored for TypeScript projects. It simplifies the setup process for collecting code coverage metrics in TypeScript applications by providing a pre-configured set of options that work out of the box.

What are @istanbuljs/nyc-config-typescript's main functionalities?

Pre-configured NYC settings for TypeScript

This feature allows you to extend the default NYC configuration with settings optimized for TypeScript. By adding this to your `nyc` configuration in `package.json`, you can easily integrate code coverage into your TypeScript project.

{
  "extends": "@istanbuljs/nyc-config-typescript"
}

Source map support

This configuration ensures that source maps are properly handled, allowing for accurate code coverage reports that map back to the original TypeScript source files. It includes all TypeScript files in the `src` directory and excludes declaration files.

{
  "nyc": {
    "extends": "@istanbuljs/nyc-config-typescript",
    "all": true,
    "check-coverage": true,
    "reporter": ["html", "text-summary"],
    "include": ["src/**/*.ts"],
    "exclude": ["**/*.d.ts"]
  }
}

Other packages similar to @istanbuljs/nyc-config-typescript

FAQs

Package last updated on 01 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts