MCPcopy Create free account
hub / github.com/Schniz/fnm / write

Function write

e2e/shellcode/script.ts:161–168  ·  view source on GitHub ↗
(writable: Writable, text: string)

Source from the content-addressed store, hash-verified

159}
160
161function write(writable: Writable, text: string): Promise<void> {
162 return new Promise<void>((resolve, reject) => {
163 writable.write(text, (err) => {
164 if (err) return reject(err)
165 return resolve()
166 })
167 })
168}
169
170export function script(shell: Pick<Shell, "dieOnErrors">): Script {
171 const fnmDir = path.join(testTmpDir(), "fnm")

Callers 4

test_portalFunction · 0.85
test_from_str_directoryFunction · 0.85
executeMethod · 0.85

Calls

no outgoing calls

Tested by 3

test_portalFunction · 0.68
test_from_str_directoryFunction · 0.68