MCPcopy Create free account
hub / github.com/HashLips/generative-art-opensource / cleanName

Function cleanName

input/config.js:24–27  ·  view source on GitHub ↗
(_str)

Source from the content-addressed store, hash-verified

22
23// get the name without last 4 characters -> slice .png from the name
24const cleanName = (_str) => {
25 let name = _str.slice(0, -4);
26 return name;
27};
28
29// reads the filenames of a given folder and returns it with its name and path
30const getElements = (_path, _elementCount) => {

Callers 1

getElementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected