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

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

Dependents (2)

Package Sidebar

Install

npm i @luxuryescapes/lib-uri-templates

Weekly Downloads

2,737

Version

3.0.6

License

MIT

Unpacked Size

60.1 kB

Total Files

52

Last publish

Collaborators

  • ankit.sehgal
  • sithum-nissanka-le
  • fabricio-frontarolli-le
  • ryan.cole
  • soumya-le
  • connor-kneebone-le
  • jamesbeattie-luxuryescapes
  • denis.babak.lux
  • benfranzi-le
  • k0zn4n3ja
  • gribesh
  • alex-teng-le
  • venkatle
  • gabrielgsduarte
  • adisembiringle
  • gearoid-sheehan
  • finbar-kelly-le
  • maha-zohbi-le
  • chrisnassif
  • ron-crisostomo-le
  • georgia-wahib-le
  • jeanbiezus
  • 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
  • jordikitto_le
  • steve.dang
  • andrewjohnstone
  • brunohaveroth
  • pavel-lux
  • mary-le
  • thilina-piyadasun-le
  • gabriel.costa.lux
  • harish-indla-le
  • sakethgetla
  • nicholaspuglia
  • sitaraman
  • siddharth.bose
  • aarontoomey-le
  • sergio.costa.luxuryescapes
  • 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