Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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,086

Version

1.0.726

License

Apache-2.0

Unpacked Size

21.5 kB

Total Files

12

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar