open-index/open-npm huggingface dataset:
npm package: @infosel-sdk/funds-holdings
Description: Funds Holdings SDK for Infosel
Author: Infosel
Latest version: 0.2.2

# Funds Holdings SDK

Funds Holdings SDK for Infosel provides access to fund holdings, decomposition, and participation data.

## Features

- **Holdings**: Get fund holdings with pagination support
- **Fund Decomposition**: Decompose funds to analyze their composition
- **Holdings Participation**: Analyze equity and fixed income weight distribution

## Installation

```bash
npm install @infosel-sdk/funds-holdings
```

## Usage

```typescript
import { FundsHoldingsSDK } from '@infosel-sdk/funds-holdings';
import { InfoselSdkManager } from '@infosel-sdk/core';

const sdkManager = InfoselSdkManager.init({
  mode: 'qa',
  authProviderConfig: {
    type: 'key-cloak',
    credentials: {
      grant_type: 'client_credentials',
      client_id: 'your-client-id',
      client_secret: 'your-client-secret',
    },
  },
});

const fundsHoldingsSDK = new FundsHoldingsSDK(sdkManager);

// Get holdings
const holdings = await fundsHoldingsSDK.getHoldings({
  issuer: 'GOLD2+',
  limit: 10,
  offset: 0
});

// Decompose fund
const decomposition = await fundsHoldingsSDK.decomposeFund({
  issuer: 'GOLD2+',
  limit: 5,
  offset: 0
});

// Get decomposed holdings
const decomposedHoldings = await fundsHoldingsSDK.getDecomposedHoldings({
  issuer: 'GOLD2+',
  limit: 5
});

// Get holdings participation
const participation = await fundsHoldingsSDK.getHoldingsParticipation({
  issuer: 'GOLD2+',
  limit: 5,
  offset: 0
});
```

## API Endpoints

- `GET /holdings` - Retrieve fund holdings
- `POST /fund-decomposition/decompose` - Decompose a fund
- `GET /fund-decomposition/decomposed-holdings` - Get decomposed holdings
- `GET /fund-decomposition/holdings-participation` - Get holdings participation analysis

## License

MIT
npm package: @infoservice/object-to-formdata
Description: A convenient JavaScript function that converts an object to a FormData instance
Author: Parmesh Krishen
Latest version: 1.6.5

# object-to-formdata

[![npm](https://img.shields.io/npm/v/object-to-formdata.svg)](https://www.npmjs.com/package/object-to-formdata)
[![npm](https://img.shields.io/npm/dt/object-to-formdata.svg)](https://www.npmjs.com/package/object-to-formdata)

`object-to-formdata` is a convenient JavaScript function that converts an object to a FormData instance.

```js
const objectToFormData = require('object-to-formdata');

const object = {
  /**
   * key-value mapping
   * values can be primitives or objects
   */
};

const options = {
  /**
   * whether or not to include array indices in FormData keys
   * defaults to false
   */
  indices: false,

  /**
   * whether or not to include null values as empty strings in FormData instance
   * defaults to true
   */
  nulls: true
};

const formData = objectToFormData(
  object,
  options, // optional
  existingFormData, // optional
  keyPrefix // optional
);

console.log(formData);
```