Socket
Book a DemoInstallSign in
Socket

@dwp/nyc-config-base

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dwp/nyc-config-base

Base configuration for nyc

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
4
Created
Source

@dwp/nyc-config-base

Shareable nyc config for instrumenting code.

Getting started

npm install --save-dev @dwp/nyc-config-base nyc

Rules

Add a nyc.config.js file that looks something like:

module.exports = require('@dwp/nyc-config-base');

You can add your own rules to enhance this, but in doing so please ensure you don't weaken the baseline ruleset.

Instrumenting tests

Add nyc to your test suite like this, or see our package.json for an example of how we do it:

"test": "nyc jasmine"

FAQs

Package last updated on 04 Dec 2024

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.