---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [cartridges](../index.md) / parseCartridgePath

# Function: parseCartridgePath()

> **parseCartridgePath**(`value`): `string`[]

Defined in: [packages/b2c-tooling-sdk/src/cartridges/order.ts:31](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/cartridges/order.ts#L31)

Parses a cartridge path value into an ordered list of cartridge names.

Accepts the forms used by `dw.json`/`SFCC_CARTRIDGES` and Business Manager:
a colon- or comma-separated string, or an array of names. Empty entries are
dropped; anything else returns an empty list.

## Parameters

### value

`unknown`

## Returns

`string`[]

## Example

```typescript
parseCartridgePath('app_custom:app_storefront_base:modules');
// ['app_custom', 'app_storefront_base', 'modules']
```
