open-index/open-npm huggingface dataset:
npm package: @salesforce/metadata-enrichment
Description: A library for handling metadata enrichment
Author: Salesforce
Latest version: 0.0.14

# metadata-enrichment

[![License](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://opensource.org/license/apache-2-0) [![NPM](https://img.shields.io/npm/v/@salesforce/metadata-enrichment.svg?label=@salesforce/metadata-enrichment)](https://www.npmjs.com/package/@salesforce/metadata-enrichment) [![Downloads/week](https://img.shields.io/npm/dw/@salesforce/metadata-enrichment.svg)](https://npmjs.org/package/@salesforce/metadata-enrichment) 

## Introduction

A library for handling metadata enrichment. Supports metadata enrichment flows in [the CLI plugin](https://github.com/salesforcecli/plugin-metadata-enrichment), Agentforce for Developers, and other experiences. 

## Features

- Send metadata enrichment requests
- Read/write enriched metadata for local project components

## Issues

Please report all issues to the [issues only repository](https://github.com/forcedotcom/cli/issues).

## Usage


### Install

Install the package:

```
npm install @salesforce/metadata-enrichment
```

## Contributing

See [CONTRIBUTING.md](./CONTRIBUTING.md) for details on how to contribute to the library.

### Install & Build

Install:

```
yarn install 
```

Build:

```
yarn build
```

### Plugin Local Development

This library is used extensively by [plugin-metadata-enrichment](https://github.com/salesforcecli/plugin-metadata-enrichment).
To link the local library to the local plugin for development:

1. Clean artifacts from plugin library

```
[plugin-metadata-enrichment]
yarn clean-all
```

2. Install and build metadata-enrichment library

```
[metadata-enrichment]
yarn install && yarn build
```

3. Run local install script

```
[metadata-enrichment]
yarn local:install /{PATH}/{TO}/{LOCAL}/{PLUGIN}/plugin-metadata-enrichment
```

This installs a local package into your plugin directory and updates your `package.json` to point to it.

4. Install and build plugin

```
[plugin-metadata-enrichment]
yarn install && yarn build
```
npm package: @salesforce/mrt-utilities
Description: Middleware and utilities to simulate a deployed Managed Runtime environment
Author: Salesforce
Latest version: 0.1.1

# mrt-utilities

Middleware and utilities to simulate a deployed MRT environment.

## Usage

```
import {
    createMRTProxyMiddlewares,
    createMRTRequestProcessorMiddleware,
    createMRTStaticAssetServingMiddleware,
    createMRTCommonMiddleware,
    createMRTCleanUpMiddleware,
    isLocal,
} from '@salesforce/mrt-utilities';


export const createApp = (): Express => {
    const app = express();
    app.disable('x-powered-by');

    // Top most middleware to set up headers
    app.use(createMRTCommonMiddleware());

    if (isLocal()) {
        const requestProcessorPath = 'path/to/request-processor.js';
        const proxyConfigs = [
            {
                host: 'https://example.com',
                path: 'api',
            },
        ];
        app.use(createMRTRequestProcessorMiddleware(requestProcessorPath, proxyConfigs));

        const mrtProxies = createMRTProxyMiddlewares(proxyConfigs);
        mrtProxies.forEach(({ path, fn }) => {
            app.use(path, fn);
        });

        const staticAssetDir = 'path/to/static';
        app.use(
            `/mobify/bundle/${process.env.BUNDLE_ID || '1'}/static/`,
            createMRTStaticAssetServingMiddleware(staticAssetDir)
        );
    }

    // Cleans up any remaining headers and sets any remaining values
    app.use(createMRTCleanUpMiddleware());
```
npm package: @salesforce/packaging
Description: Packaging library for the Salesforce packaging platform
Latest version: 4.22.7

# Salesforce Packaging

[![NPM](https://img.shields.io/npm/v/@salesforce/packaging.svg?label=@salesforce/packaging)](https://www.npmjs.com/package/@salesforce/packaging) [![Downloads/week](https://img.shields.io/npm/dw/@salesforce/packaging.svg)](https://npmjs.org/package/@salesforce/packaging) [![License](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://opensource.org/license/apache-2-0)

## Description

A TypeScript library for packaging metadata in your Salesforce project. This library supports both First-Generation packaging (1GP) and Second-Generation packaging (2GP).

## Usage

There are 4 main classes to use from this library:

1. [Package1Version](https://forcedotcom.github.io/packaging/classes/package1_package1Version.Package1Version.html) - Work with 1st generation package versions.
1. [Package](https://forcedotcom.github.io/packaging/classes/package_package.Package.html) - Work with 2nd generation packages.
1. [PackageVersion](https://forcedotcom.github.io/packaging/classes/package_packageVersion.PackageVersion.html) - Work with 2nd generation package versions.
1. [SubscriberPackageVersion](https://forcedotcom.github.io/packaging/classes/package_subscriberPackageVersion.SubscriberPackageVersion.html) - Work with 2nd generation subscriber package versions.

Please reference the [API Documentation](https://forcedotcom.github.io/packaging/) for complete details of code and types.

## Contributing

If you are interested in contributing, please take a look at the [CONTRIBUTING](CONTRIBUTING.md) guide.