# @xrplkit/xls26

> This is an implementation of the [XLS-26 Standard](https://github.com/XRPLF/XRPL-Standards/discussions/71). This package exports one single function called `parse` that converts the string of a `xrp-ledger.toml` file to a JavaScript object.

Latest version **2.6.0** (published 2026-01-01) · 0 weekly downloads

## Install

```sh
npm install @xrplkit/xls26
pnpm add @xrplkit/xls26
yarn add @xrplkit/xls26
bun add @xrplkit/xls26
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.6.0 |
| Published | 2026-01-01 |
| First published | 2022-07-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mwni |
| Keywords | xrpl, xls-26, parser, metadata, tokens |

## Links

- npm: https://www.npmjs.com/package/@xrplkit/xls26
- npm.io page: https://npm.io/package/@xrplkit/xls26

## Dependencies (1)

- [@xrplkit/toml](https://npm.io/package/@xrplkit/toml.md) 1.0.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 2.6.0 (latest) — 2026-01-01
- 2.5.0 — 2025-07-02
- 2.4.0 — 2024-08-09
- 2.3.1 — 2023-01-17
- 2.3.0 — 2023-01-17
- 2.2.0 — 2022-09-14
- 2.1.0 — 2022-07-22
- 2.0.2 — 2022-07-21
- 2.0.1 — 2022-07-21
- 2.0.0 — 2022-07-21
- 1.0.0 — 2022-07-16

## README

# XLS-26 Parsing Library

This is an implementation of the [XLS-26 Standard](https://github.com/XRPLF/XRPL-Standards/discussions/71).
This package exports one single function called `parse` that converts the string of a `xrp-ledger.toml` file to a JavaScript object.


## Example
Assuming you have a file named `xrp-ledger.toml` in the current working directory. An example file can be found below.

```javascript
import fs from 'fs'
import { parse } from '@xrplkit/xls26'

const tomlString = fs.readFileSync('./xrp-ledger.toml', 'utf-8')
const xls26Data = parse(tomlString)

console.log(xls26Data)
```


### Example File

```toml
[[ISSUERS]]
address = "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De"
name = "Ripple"
desc = "We're building the Internet of Value."

[[TOKENS]]
issuer = "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De"
currency = "RLUSD"
name = "Ripple USD"
desc = "Ripple USD (RLUSD) is natively issued on the XRP Ledger and Ethereum blockchains and is enabled with a number of features to ensure strict adherence to compliance standards, flexibility for developers, and security for holders."
icon = "https://ripple.com/assets/rlusd-logo.png"
asset_class = "rwa"
asset_subclass = "stablecoin"

[[TOKENS.URLS]]
url = "https://ripple.com"
type = "website"
title = "Official Website"

[[TOKENS.URLS]]
url = "https://x.com/ripple"
type = "social"
```


### Example Output

```javascript
{
  issuers: [
    {
      address: 'rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De',
      name: 'Ripple',
      desc: "We're building the Internet of Value."
    }
  ],
  tokens: [
    {
      currency: 'RLUSD',
      issuer: 'rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De',
      name: 'Ripple USD',
      desc: 'Ripple USD (RLUSD) is natively issued on the XRP Ledger and Ethereum blockchains and is enabled with a number of features to ensure strict adherence to compliance standards, flexibility for developers, and security for holders.',
      icon: 'https://ripple.com/assets/rlusd-logo.png',
      asset_class: 'rwa',
      asset_subclass: 'stablecoin',
      urls: [
        {
          url: 'https://ripple.com',
          type: 'website',
          title: 'Official Website'
        },
        { url: 'https://x.com/ripple', type: 'social' }
      ]
    }
  ],
  issues: []
}
```

---
_Source: https://npm.io/package/@xrplkit/xls26 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
