mise API - v0.0.0
    Preparing search index...

    Function pluginInput_detect

    • Detects what an input names.

      A URL starts with http:// or https://; an image holds / or :; anything else is a plugin name, pl-x-v1.2.3 naming a version.

      Parameters

      • input: string

        The input as typed.

      Returns PluginInput

      What it names.

      pluginInput_detect('pl-dircopy-v2.1.1'); // { kind: 'name', value: 'pl-dircopy', name: 'pl-dircopy', version: '2.1.1' }