MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / append

Method append

src/MagicString.ts:117–123  ·  view source on GitHub ↗

* Appends the specified content to the end of the string.

(content: string)

Source from the content-addressed store, hash-verified

115 * Appends the specified content to the end of the string.
116 */
117 append(content: string): this {
118 if (typeof content !== 'string')
119 throw new TypeError('outro content must be a string')
120
121 this.outro += content
122 return this
123 }
124
125 /**
126 * Appends the specified content at the index in the original string.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected