Have ideas to improve npm?Join in the discussion! »

    @hooks/geo-location
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    🎒 @hooks/geo-location

    React hook to return geo location details

    NPM version Travis License

    Install

    npm i @hooks/geo-location

    Usage

    useGeoLocation

    useGeoLocation(options?: PositionOptions)[Position, PositionError]

    Parameters

    options?: PositionOptions

    Passes PositionOptions through to the geolocation API - https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions

    Return

    Returns an array containing the position and any position error.

    Install

    npm i @hooks/geo-location

    DownloadsWeekly Downloads

    18

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    4.09 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar