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

Method append

src/MagicString.ts:120–126  ·  view source on GitHub ↗

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

(content: string)

Source from the content-addressed store, hash-verified

118 * Appends the specified content to the end of the string.
119 */
120 append(content: string): this {
121 if (typeof content !== 'string')
122 throw new TypeError('outro content must be a string')
123
124 this.outro += content
125 return this
126 }
127
128 /**
129 * 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