Node CrowdSec Client
    Preparing search index...

    Function parseDuration

    • Parse a CrowdSec/cscli duration into seconds.

      Mirrors github.com/crowdsecurity/go-cs-lib/cstime: d (24h) is supported only as the first unit, must be an integer, and w is not supported.

      Parameters

      • input: string

      Returns number