Normal Programming Mistake

    foursquare-locales

    1.0.726 • Public • Published

    foursquare-locales

    NPM version Downloads

    Infers the best Foursquare URL for a given locale.

    Usage

    Install the library with npm install foursquare-locales

    var FoursquareLocales = require('foursquare-locales').FoursquareLocales;
     
    FoursquareLocales.bestDomainFor('en_US'); //-> 'foursquare.com'
    FoursquareLocales.bestDomainFor("fr_FR"); //-> 'fr.foursquare.com'
     
    FoursquareLocales.bestPageUrlFor({locale: 'en_US', venueId:'1234'}); //-> 'https://foursquare.com/v/1234'
     
    FoursquareLocales.bestPageUrlFor({locale: 'en_US', venueId:'1234', tab:'menu'}); //-> 'https://foursquare.com/v/1234/menu'

    Install

    npm i foursquare-locales

    DownloadsWeekly Downloads

    1

    Version

    1.0.726

    License

    Apache-2.0

    Unpacked Size

    21.5 kB

    Total Files

    12

    Last publish

    Collaborators

    • yurynix
    • itai.benda
    • wix-ci
    • wix-ambassador
    • shahata
    • netanelgilad
    • wix-ci-publisher
    • wix-bi-publisher