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

3.0.7 • 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

Readme

Keywords

none

Package Sidebar

Install

npm i @luxuryescapes/lib-uri-templates

Weekly Downloads

2,648

Version

3.0.7

License

MIT

Unpacked Size

59.7 kB

Total Files

53

Last publish

Collaborators

  • venkatle
  • sakethgetla
  • tracymu
  • k0zn4n3ja
  • chris.nguyen.lux
  • marhalpert
  • reb2020
  • zediah
  • sonyque
  • joshuacullenlux
  • colins44
  • lukas-zimmermann-le
  • semeer-acheerithodi-le
  • 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
  • dan-wanigasekera-le
  • siddharth.bose
  • alexander.yakovenko
  • sergio.costa.luxuryescapes
  • greg-cumming-le
  • felipefeal.lux
  • cleberricardi
  • andrey-tryapitsin-le
  • arminmon-le
  • mattswansonlux
  • quan.tang
  • dunedayl
  • mary-le
  • hfrankel
  • callmekev
  • aarontoomey-le
  • nicholaspuglia
  • tuanhung-pham-le
  • sangin.lee
  • welingtonlarsenlux
  • paulo.silva3991
  • ricardobalbinot
  • matthewdelaneyatluxuryescapes
  • sitaraman
  • benfranzi-le
  • harish-indla-le
  • pavel-lux
  • nishanthi.n
  • elias.vieira
  • gabriel.costa.lux
  • thilina-piyadasun-le
  • ryan.cole
  • brunohaveroth
  • andrewjohnstone
  • steve.dang
  • jordikitto_le
  • fabricio-frontarolli-le
  • vincent-tran-le
  • chiamaka-ibeme-le
  • lukejudd-lux
  • alex-teng-le
  • dishang
  • gribesh
  • noahxny
  • ethanscavia
  • samhammond
  • hamed.le
  • dulaj.pathirana
  • philippecarvalho
  • roberto-luxuryescapes
  • jamesbeattie-luxuryescapes
  • denis.babak.lux
  • jeanbiezus
  • georgia-wahib-le
  • connor-kneebone-le
  • william.idoine
  • maha-zohbi-le
  • gearoid-sheehan
  • adisembiringle
  • aleksandar.vuksanovic
  • james-kwok-le
  • lux-alexd
  • finbar-kelly-le
  • ron-crisostomo-le
  • chrisnassif
  • gabrielgsduarte
  • edward.iskenderian
  • william-ong
  • daviaazevedo
  • glesage_le
  • sithum-nissanka-le
  • ankit.sehgal
  • pascal-enz-le
  • mark-ma-le
  • caioportela-le
  • serhii.kartavtsev
  • zrdilig