E621
    Preparing search index...

    Function createStandalone

    • Constructs a minimal, standalone E621-like object containing only the modules you explicitly provide, wired so they can call back into each other via this.e621 (e.g. so post.favorite() works if favorites is included). Unlike new E621(), only the modules you list here (and their own dependencies) need to be bundled - useful when tree-shaking matters more than convenience.

      Post-format-aware modules (Posts, Favorites, Popular, IqdbQueries) always fall back to the legacy format here, matching new E621() when Options.defaultPostFormat isn't set - there's no way to thread a type-accurate default through a plain array of module classes like this, so it isn't exposed as an option. Pass v2/mode per call instead.

      Type Parameters

      • T extends readonly ModuleClass<string, unknown>[]

      Parameters

      Returns StandaloneResult<T>