Interface CoerceOptions

Options for coerce()

interface CoerceOptions {
    includePrerelease?: boolean;
    loose?: boolean;
    rtl?: boolean;
}

Hierarchy (View Summary)

Properties

includePrerelease?: boolean
loose?: boolean
rtl?: boolean

Used by coerce() to coerce from right to left.

false
coerce('1.2.3.4', { rtl: true }) // { version: '2.3.4', ... }