the Istanbul command line interface
nyc is a command-line interface for Istanbul, a JavaScript code coverage tool. It instruments ES5 and ES2015+ JavaScript code with line counters to track how well unit tests exercise a codebase, and works with most JavaScript testing frameworks including tap, mocha, and AVA. The tool supports applications that spawn subprocesses and provides source-mapped coverage for Babel and TypeScript projects. nyc is built for JavaScript and is part of the istanbuljs project.