{"_id":"url-template","_rev":"4106603","name":"url-template","description":"A URI template implementation (RFC 6570 compliant)","dist-tags":{"latest":"3.1.1"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"time":{"modified":"2026-01-11T18:55:52.000Z","created":"2012-10-31T09:57:58.567Z","3.1.1":"2023-12-13T17:38:06.875Z","3.1.0":"2022-07-17T16:35:49.415Z","3.0.0":"2022-01-31T10:17:27.799Z","2.0.8":"2016-07-07T13:51:39.665Z","2.0.7":"2016-05-30T07:02:33.484Z","2.0.6":"2015-03-27T10:54:38.362Z","2.0.5":"2015-03-06T18:30:27.354Z","2.0.4":"2013-09-26T17:40:25.099Z","2.0.2":"2013-07-01T07:06:25.009Z","2.0.1":"2013-04-23T09:11:24.069Z","2.0.0":"2013-04-23T09:04:56.371Z","1.1.0":"2013-02-20T20:12:02.979Z","1.0.0":"2012-10-31T09:57:58.567Z"},"users":{"joakin":true,"wenbing":true,"mecal":true,"tunnckocore":true,"jrnail23":true,"abhisekp":true,"rizowski":true,"josudoey":true},"author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"https://www.bramstein.com"},"repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"versions":{"3.1.1":{"name":"url-template","version":"3.1.1","description":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"https://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"chai":"^4.3.6","mocha":"^10.0.0"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"type":"module","main":"./lib/url-template.js","exports":"./lib/url-template.js","types":"./lib/url-template.d.ts","sideEffects":false,"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"node --experimental-json-modules node_modules/mocha/bin/mocha --reporter spec"},"_id":"url-template@3.1.1","gitHead":"dc56c5210b46f1e2eccd1df43087c07239445589","bugs":{"url":"https://github.com/bramstein/url-template/issues"},"homepage":"https://github.com/bramstein/url-template#readme","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"shasum":"c220d5f3f793d28b0de341002112879cc8a43905","size":3282,"noattachment":false,"key":"/url-template/-/url-template-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-3.1.1.tgz"},"_npmUser":{"name":"jkoops","email":"jonkoops@gmail.com"},"directories":{},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-template_3.1.1_1702489086673_0.5599391264921705"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-13T17:38:06.875Z","publish_time":1702489086875,"_source_registry_name":"default","_cnpm_publish_time":1702489086875},"3.1.0":{"name":"url-template","version":"3.1.0","description":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"https://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"chai":"^4.3.6","mocha":"^10.0.0"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"type":"module","main":"./lib/url-template.js","exports":"./lib/url-template.js","types":"./lib/url-template.d.ts","sideEffects":false,"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"node --experimental-json-modules node_modules/mocha/bin/mocha --reporter spec"},"gitHead":"5a4490c0c440592669f5f60bc89d0073e7feabbe","bugs":{"url":"https://github.com/bramstein/url-template/issues"},"homepage":"https://github.com/bramstein/url-template#readme","_id":"url-template@3.1.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"d9be13d342ad31fcedc3c0bd21405fd141d02ff1","size":3242,"noattachment":false,"key":"/url-template/-/url-template-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-3.1.0.tgz"},"_npmUser":{"name":"jkoops","email":"jonkoops@gmail.com"},"directories":{},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-template_3.1.0_1658075749231_0.09598470389026192"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-17T16:35:52.902Z","publish_time":1658075749415,"_cnpm_publish_time":1658075749415},"3.0.0":{"name":"url-template","version":"3.0.0","description":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"https://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"chai":"^4.3.6","mocha":"^9.2.0"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"type":"module","main":"./lib/url-template.js","exports":"./lib/url-template.js","types":"./lib/url-template.d.ts","sideEffects":false,"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"node --experimental-json-modules node_modules/mocha/bin/mocha --reporter spec"},"gitHead":"9511745a374e4af570e0a721ba736a52dc797804","bugs":{"url":"https://github.com/bramstein/url-template/issues"},"homepage":"https://github.com/bramstein/url-template#readme","_id":"url-template@3.0.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"shasum":"31b6d53d44d79912f6e5737d06f377d16e214a54","size":3205,"noattachment":false,"key":"/url-template/-/url-template-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-3.0.0.tgz"},"_npmUser":{"name":"jonkoops","email":"jonkoops@gmail.com"},"directories":{},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-template_3.0.0_1643624247652_0.6099916886112331"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-31T10:18:55.740Z","publish_time":1643624247799,"_cnpm_publish_time":1643624247799},"2.0.8":{"name":"url-template","version":"2.0.8","decription":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"mocha":"=1.6.0","expect.js":"=0.2.0"},"license":"BSD","repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"main":"./lib/url-template.js","directories":{"lib":"./lib"},"scripts":{"test":"mocha --reporter spec"},"gitHead":"28636cc59848cbce5df1fb6fba81e563bcd7a2ce","description":"This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.","bugs":{"url":"https://github.com/bramstein/url-template/issues"},"homepage":"https://github.com/bramstein/url-template#readme","_id":"url-template@2.0.8","_shasum":"fc565a3cccbff7730c775f5641f9555791439f21","_from":".","_npmVersion":"3.10.3","_nodeVersion":"5.7.0","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"dist":{"shasum":"fc565a3cccbff7730c775f5641f9555791439f21","size":14616,"noattachment":false,"key":"/url-template/-/url-template-2.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-2.0.8.tgz"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/url-template-2.0.8.tgz_1467899498514_0.5788283308502287"},"publish_time":1467899499665,"_cnpm_publish_time":1467899499665,"_hasShrinkwrap":false},"2.0.7":{"name":"url-template","version":"2.0.7","decription":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"mocha":"=1.6.0","expect.js":"=0.2.0"},"license":"BSD","repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"main":"./lib/url-template.js","directories":{"lib":"./lib"},"scripts":{"test":"mocha --reporter spec"},"gitHead":"62c213ad784f00e0ee316b34f8b7aa6c5e374f30","description":"This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.","bugs":{"url":"https://github.com/bramstein/url-template/issues"},"homepage":"https://github.com/bramstein/url-template#readme","_id":"url-template@2.0.7","_shasum":"ac18af61295882abad47058189ebded42ae08e08","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"dist":{"shasum":"ac18af61295882abad47058189ebded42ae08e08","size":6336,"noattachment":false,"key":"/url-template/-/url-template-2.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-2.0.7.tgz"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/url-template-2.0.7.tgz_1464591751573_0.8347531645558774"},"publish_time":1464591753484,"_cnpm_publish_time":1464591753484,"_hasShrinkwrap":false},"2.0.6":{"name":"url-template","version":"2.0.6","decription":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"mocha":"=1.6.0","expect.js":"=0.2.0"},"license":"BSD","repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"main":"./lib/url-template.js","directories":{"lib":"./lib"},"scripts":{"test":"mocha --reporter spec"},"description":"This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.","bugs":{"url":"https://github.com/bramstein/url-template/issues"},"homepage":"https://github.com/bramstein/url-template","_id":"url-template@2.0.6","dist":{"shasum":"cb6b381d91551b5127eec8cba9db93c7a38eaad0","size":6249,"noattachment":false,"key":"/url-template/-/url-template-2.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-2.0.6.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"publish_time":1427453678362,"_cnpm_publish_time":1427453678362,"_hasShrinkwrap":false},"2.0.5":{"name":"url-template","version":"2.0.5","decription":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"mocha":"=1.6.0","expect.js":"=0.2.0"},"repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"main":"./lib/url-template.js","directories":{"lib":"./lib"},"scripts":{"test":"mocha --reporter spec"},"description":"This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.","bugs":{"url":"https://github.com/bramstein/url-template/issues"},"homepage":"https://github.com/bramstein/url-template","_id":"url-template@2.0.5","dist":{"shasum":"78e105dc670757b376e2d6bb452375e5f835783b","size":6239,"noattachment":false,"key":"/url-template/-/url-template-2.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-2.0.5.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"publish_time":1425666627354,"_cnpm_publish_time":1425666627354,"_hasShrinkwrap":false},"2.0.4":{"name":"url-template","version":"2.0.4","decription":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"mocha":"=1.6.0","expect.js":"=0.2.0"},"repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"main":"./lib/url-template.js","directories":{"lib":"./lib"},"scripts":{"test":"mocha --reporter spec"},"readmeFilename":"README.md","_id":"url-template@2.0.4","description":"This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.","dist":{"shasum":"16853da41f63bf95543a70f7c300b8a642816533","size":5447,"noattachment":false,"key":"/url-template/-/url-template-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-2.0.4.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"publish_time":1380217225099,"_cnpm_publish_time":1380217225099,"_hasShrinkwrap":false},"2.0.2":{"name":"url-template","version":"2.0.2","decription":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"mocha":"=1.6.0","expect.js":"=0.2.0"},"repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"main":"./lib/url-template.js","directories":{"lib":"./lib"},"scripts":{"test":"mocha --reporter spec"},"readmeFilename":"README.md","_id":"url-template@2.0.2","description":"This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.","dist":{"shasum":"60c9a7eab0f4d5ce7df8e3ea32b36a2a43fcaa76","size":5363,"noattachment":false,"key":"/url-template/-/url-template-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-2.0.2.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"publish_time":1372662385009,"_cnpm_publish_time":1372662385009,"_hasShrinkwrap":false},"2.0.1":{"name":"url-template","version":"2.0.1","decription":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"mocha":"=1.6.0","expect.js":"=0.2.0"},"repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"main":"./lib/url-template.js","directories":{"lib":"./lib"},"scripts":{"test":"mocha --reporter spec"},"readmeFilename":"README.md","_id":"url-template@2.0.1","description":"This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.","dist":{"shasum":"6bf14e906dd4d0c77d25e4dfffbe29a52c156e13","size":5296,"noattachment":false,"key":"/url-template/-/url-template-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-2.0.1.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"publish_time":1366708284069,"_cnpm_publish_time":1366708284069,"_hasShrinkwrap":false},"2.0.0":{"name":"url-template","version":"2.0.0","decription":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"mocha":"=1.6.0","expect.js":"=0.2.0"},"repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"main":"./lib/url-template.js","directories":{"lib":"./lib"},"scripts":{"test":"mocha --reporter spec"},"readmeFilename":"README.md","_id":"url-template@2.0.0","description":"This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.","dist":{"shasum":"2f2784dad3decd97a0596e3ff5072d799e88cecd","size":5301,"noattachment":false,"key":"/url-template/-/url-template-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-2.0.0.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"publish_time":1366707896371,"_cnpm_publish_time":1366707896371,"_hasShrinkwrap":false},"1.1.0":{"name":"url-template","version":"1.1.0","decription":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"mocha":"=1.6.0","expect.js":"=0.2.0"},"repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"main":"./lib/url-template.js","directories":{"lib":"./lib"},"scripts":{"test":"mocha --reporter spec"},"readmeFilename":"README.md","_id":"url-template@1.1.0","description":"This is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.","dist":{"shasum":"af1371daa7dd3669f2b3454f54a3b56dad406489","size":5281,"noattachment":false,"key":"/url-template/-/url-template-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-1.1.0.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"publish_time":1361391122979,"_cnpm_publish_time":1361391122979,"_hasShrinkwrap":false},"1.0.0":{"name":"url-template","version":"1.0.0","decription":"A URI template implementation (RFC 6570 compliant)","author":{"name":"Bram Stein","email":"b.l.stein@gmail.com","url":"http://www.bramstein.com"},"keywords":["uri-template","uri template","uri","url","rfc 6570","url template","url-template"],"devDependencies":{"mocha":"=1.6.0","expect.js":"=0.2.0"},"repository":{"type":"git","url":"git://github.com/bramstein/url-template.git"},"main":"./lib/uri-template","directories":{"lib":"./lib"},"scripts":{"test":"mocha --reporter spec"},"_npmUser":{"name":"bramstein","email":"b.l.stein@gmail.com"},"_id":"url-template@1.0.0","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"042bc36a024b8758e592b42d8ee5db56982b7e4c","size":4675,"noattachment":false,"key":"/url-template/-/url-template-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/url-template/download/url-template-1.0.0.tgz"},"maintainers":[{"name":"bramstein","email":"b.l.stein@gmail.com"},{"name":"jkoops","email":""}],"publish_time":1351677478567,"_cnpm_publish_time":1351677478567,"_hasShrinkwrap":false}},"readme":"## A JavaScript URI template implementation\n\nThis is a simple URI template implementation following the [RFC 6570 URI Template specification](http://tools.ietf.org/html/rfc6570). The implementation supports all levels defined in the specification and is extensively tested.\n\n## Installation\n\nFor use with Node.js or build tools you can install it through npm:\n\n```sh\n$ npm install url-template\n```\n\nIf you want to use it directly in a browser use a CDN like [Skypack](https://www.skypack.dev/view/url-template).\n\n## Example\n\n```js\nimport { parseTemplate } from 'url-template';\n\nconst emailUrlTemplate = parseTemplate('/{email}/{folder}/{id}');\nconst emailUrl = emailUrlTemplate.expand({\n  email: 'user@domain',\n  folder: 'test',\n  id: 42\n});\n\nconsole.log(emailUrl);\n// Returns '/user@domain/test/42'\n```\n\n## A note on error handling and reporting\n\nThe RFC states that errors in the templates could optionally be handled and reported to the user. This implementation takes a slightly different approach in that it tries to do a best effort template expansion and leaves erroneous expressions in the returned URI instead of throwing errors. So for example, the incorrect expression `{unclosed` will return `{unclosed` as output. The leaves incorrect URLs to be handled by your URL library of choice.\n","_attachments":{},"homepage":"https://github.com/bramstein/url-template#readme","bugs":{"url":"https://github.com/bramstein/url-template/issues"},"license":"BSD-3-Clause"}