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

[@salesforce/b2c-tooling-sdk](../../modules.md) / [scaffold](../index.md) / prependContent

# Function: prependContent()

> **prependContent**(`existingContent`, `newContent`): `string`

Defined in: [packages/b2c-tooling-sdk/src/scaffold/merge.ts:241](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/67fb8580ac3c5b372617ee3ec3fc8f2bc9f16174/packages/b2c-tooling-sdk/src/scaffold/merge.ts#L241)

Prepend content to the beginning of existing content

## Parameters

### existingContent

`string`

The existing text content

### newContent

`string`

Content to prepend

## Returns

`string`

Updated content
