def is_hub

ezx@1.11.0.0 · src/pkg/pkg.bend:323

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base

323# an import of a hub package, which is a dependency rather than a module of
324# this package. A `0x` name has no directory of its own, so the first `/` ends
325# it.
326def is_hub(+spec: String) -> Bool:
327  Bool.and(String.starts_with(spec, "0x"), String.contains(spec, "/"))

Uses (5)

Used by (2)