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

Method edit

benchmark/data.js:60–69  ·  view source on GitHub ↗
(content, storeName, contentOnly)

Source from the content-addressed store, hash-verified

58 }
59 }
60 edit(content, storeName, contentOnly) {
61 this.content = content;
62 if (!contentOnly) {
63 this.intro = '';
64 this.outro = '';
65 }
66 this.storeName = storeName;
67 this.edited = true;
68 return this;
69 }
70 prependLeft(content) {
71 this.outro = content + this.outro;
72 }

Callers 5

splitMethod · 0.95
trimEndMethod · 0.95
trimStartMethod · 0.95
overwriteMethod · 0.45
removeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected