@gks101/numtowords - v1.0.3
    Preparing search index...

    Interface CurrencyOptions

    Currency rendering configuration passed to ConvertOptions.currency.

    interface CurrencyOptions {
        code?: string;
        enabled?: boolean;
        includeOnly?: "both" | "major" | "minor";
        roundMinor?: "truncate" | "round";
        rules?: CurrencyLocaleRules;
    }
    Index

    Properties

    code?: string

    Currency code used to resolve locale defaults (e.g. USD, INR, EUR).

    enabled?: boolean

    Enable structured currency rendering.

    true when object is provided
    
    includeOnly?: "both" | "major" | "minor"

    Choose whether to include both parts or one side only.

    "both"
    
    roundMinor?: "truncate" | "round"

    Fraction-to-minor conversion strategy.

    "truncate"
    

    Explicit rules override locale defaults for major/minor units.