open-index/open-npm huggingface dataset:
npm package: @sap/dev-cap-tools
Description: The library provides CLI `dev-cap-tools` which can be used to visualise the outputs of APIs as shown in the following section.
Latest version: 1.53.1

# Introduction
The library provides CLI `dev-cap-tools` which can be used to visualise the outputs of APIs as shown in the following section.

```
dev-cap-tools <cmd> [path] [types..]

Commands:
  dev-cap-tools gen-entrypoint [path]       prepare files for runing application
  [options..]                               locally
  dev-cap-tools build [path]                Generate an mta.yaml file and build
  [useHeadlessGenerator] [ui5version]       an mtar file
  [ui5theme] [terminal]
  dev-cap-tools update-xsuaa-service        update XSUAA service for local run
  [path]                                    with roles defined in the project
  dev-cap-tools show-manifest [path]        Show project manifest
  [terminal]
Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]
  
```
npm package: @sap/di.code-validation.grunt
Description: grunt tasks for execution of codevalidation
Latest version: 1.0.9

# di.code-validation.grunt
provides grunt tasks for code validation

## install

npm install di.code-validation.grunt --save-dev

## Usage

```javascript
var fs = require('fs');
var path = require('path');

module.exports = function (grunt) {
    "use strict";

    var pkg = grunt.file.readJSON('package.json');

    // Project configuration.
    grunt.initConfig({
        // Task configuration.
        pkg: pkg,
        codevalidation: {
            options: {
                projectPath: '<path to the project>',
                pathPrefix: '<optionally prefix to concat to the project path>',
                ignoredPaths: [<path to folders to skip validaitons for>...],            
                reporter: "problems_reporter",
                reporterOptions: {outputFile: path.join(__dirname , "code-validation-test.log")}
            }
        }
    });

    grunt.loadNpmTasks('di.code-validation.grunt');
    grunt.registerTask('validate', ['codevalidation']);
};
```
npm package: @sap/di.code-validation.js
Description: A javascript code validator for DI based on eslint, implements di.code-validation.core API.
Latest version: 2.0.0

# di.code-validation.js

A javascript code validator for DI based on eslint, implements di.code-validation.core API.

# Install

npm install di.code-validation.js --save-dev

# Migrating to v2.0.0

We have made ***breaking changes*** to this release as a result of the migration to eslint _v8.x.x_. Some of the public APIs now provide **asynchronous** behavior - please review the usage example to refine your code.

# Usage

```javascript
const jsvalidator = require("di.code-validation.js");
const ValidationMetadata = require("di.code-validation.core").validationMetadata;
const FileResource = require("di.code-validation.core").fileResource;

const validationMetadata = new ValidationMetadata(<proLocation>);
const fileResources = [];
const fileResource = new FileResource(<full project path>, <full file path>);
fileResources.push(fileResource);
const result = await jsvalidator.validateFiles(validationMetadata, fileResources);
```

_result_ structure

```javascript
{
    "category" : <category for the rule>,
    "checker" : <base linter used>,
    "column" : 0,
    "line" : 2,
    "helpUrl" : <url for help documentation>,
    "message" : <message>,
    "path" : <full file path>,
    "ruleId" : <rule id>,
    "severity" : <error/warning/info>
}
```