@luxuryescapes/lib-uri-templates
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

CircleCI

LE URI Templates Library

Published templates:

const uri = require('lib-uri-templates');
const template = uri.templates.reservation.properties;
// Or legacy API:
// const template = uri.get('properties');

template.rfc6570                              // '/api/properties{?id_salesforce_external,limit,page}'
template.expand({id_salesforce_external: 1})  // '/api/properties?id_salesforce_external=1

Development templates:

const uri = require('lib-uri-templates');
const template = uri.mock('/api/properties{?id_salesforce_external,limit,page}')

template.rfc6570                              // '/api/properties{?id_salesforce_external,limit,page}'
template.expand({id_salesforce_external: 1})  // '/api/properties?id_salesforce_external=1

publish

  1. Merge your branch
  2. Checkout master
  3. Run yarn publish

/@luxuryescapes/lib-uri-templates/

    Package Sidebar

    Install

    npm i @luxuryescapes/lib-uri-templates

    Weekly Downloads

    3,094

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    60.1 kB

    Total Files

    50

    Last publish

    Collaborators

    • adnan03
    • chrisnassif
    • yangbole
    • ron-crisostomo-le
    • afabbiani
    • georgia-wahib-le
    • jeanbiezus
    • deven.chen
    • emanuel.kozerski
    • elias.vieira
    • roberto-luxuryescapes
    • ethanscavia
    • jahanzeb-hussain-le
    • lukejudd-lux
    • chiamaka-ibeme-le
    • vincent-tran-le
    • welingtonlarsenlux
    • hfrankel
    • sangin.lee
    • tuanhung-pham-le
    • lukas-zimmermann-le
    • lux-alexd
    • william.idoine
    • edward.iskenderian
    • adham-oliveira
    • james-kwok-le
    • aleksandar.vuksanovic
    • nishanthi.n
    • glesage_le
    • daviaazevedo
    • william-ong
    • philippecarvalho
    • dulaj.pathirana
    • hamed.le
    • samhammond
    • paulo.silva3991
    • noahxny
    • dishang
    • ahmad.hafez
    • jordikitto_le
    • steve.dang
    • andrewjohnstone
    • brunohaveroth
    • pavel-lux
    • mary-le
    • pankaj-le
    • gabe-miranda-lux
    • thilina-piyadasun-le
    • gabriel.costa.lux
    • harish-indla-le
    • eran.stiller.luxury.escapes
    • sakethgetla
    • nicholaspuglia
    • sitaraman
    • siddharth.bose
    • aarontoomey-le
    • sergio.costa.luxuryescapes
    • michael-reid-le
    • matthewdelaneyatluxuryescapes
    • ricardobalbinot
    • callmekev
    • semeer-acheerithodi-le
    • andrey-tryapitsin-le
    • quan.tang
    • alexander.yakovenko
    • greg-cumming-le
    • jerry.huang-le
    • dan-wanigasekera-le
    • dunedayl
    • arminmon-le
    • mattswansonlux
    • cleberricardi
    • felipefeal.lux
    • tracymu
    • chris.nguyen.lux
    • marhalpert
    • reb2020
    • zediah
    • sonyque
    • joshuacullenlux
    • shawn-cx-li
    • colins44
    • diegogadens
    • felixivanov
    • joshua.paling.le
    • operations.luxgroup
    • eddiemcleanlux
    • robert.harris.lux
    • kostya-luxuryescapes
    • alexb.pi
    • kaustuva
    • luizcarraro
    • ryan.tian
    • le_tyang
    • richardbiddle
    • henryshen-le
    • jamesly