yelp-locales

1.0.738 • Public • Published

yelp-locales

NPM version Downloads

Infers the best Yelp URL for a given locale.

Usage

Install the library with npm install yelp-locales

var YelpLocales = require('yelp-locales').YelpLocales;
 
YelpLocales.bestDomainFor('en_US'); //-> 'www.yelp.com'
YelpLocales.bestDomainFor("de_DE"); //-> 'www.yelp.de'
 
YelpLocales.bestPageUrlFor({locale: 'en_US', id: 'some-business'}); //-> 'https://www.yelp.com/biz/some-business'

/yelp-locales/

    Package Sidebar

    Install

    npm i yelp-locales

    Weekly Downloads

    743

    Version

    1.0.738

    License

    Apache-2.0

    Unpacked Size

    20.5 kB

    Total Files

    12

    Last publish

    Collaborators

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