MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / getTmp

Function getTmp

javascriptv3/example_code/libs/utils/util-fs.js:31–37  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

29 splitMapTrim("\n", getTmp(str) || "");
30
31export const getTmp = (name) => {
32 try {
33 return readFileSync(`./${name}.tmp`, { encoding: "utf-8" });
34 } catch (e) {
35 return null;
36 }
37};
38
39export const setTmp = (name, data) =>
40 writeFileSync(`./${name}.tmp`, data, { encoding: "utf-8" });

Callers 5

storeUserPoolMetaFunction · 0.90
validateUserPoolFunction · 0.90
initializeHandlerFunction · 0.90
createFunctionHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected