Hello y’all,

Does anyone know how to check if a perchance generator name exists on perchance?

Context:

I’ve added a feature to allow users to load their own datasets into the fusion-gen. The code is above, but the feature itself looks like this:

I’d like to be able to check if the string matches a generator that exists on perchance. Does anyone know the name of that function?

  • AdComfortable1514@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    I see. Thanks! I can use this.

    Since its async , I think what I’ll do is use the code to make a wrapper function for the dynamic import plugin, something like :

    myDynamicImportWrapper( “blahblah” , default = “template-fusion-generator-dataset” )