Gathering detailed insights and metrics for uri-template-lite
Gathering detailed insights and metrics for uri-template-lite
Gathering detailed insights and metrics for uri-template-lite
Gathering detailed insights and metrics for uri-template-lite
URI Template RFC 6570 expansion and extraction
npm install uri-template-lite
Typescript
Module System
Node Version
NPM Version
99.8
Supply Chain
94.5
Quality
75.9
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
14,300,572
Last Day
4,371
Last Week
93,418
Last Month
418,124
Last Year
4,437,082
19 Stars
67 Commits
6 Forks
5 Watchers
1 Branches
1 Contributors
Updated on Apr 13, 2025
Minified
Minified + Gzipped
Latest Version
23.4.0
Package Id
uri-template-lite@23.4.0
Unpacked Size
6.72 kB
Size
2.91 kB
File Count
3
NPM Version
9.6.2
Node Version
19.8.1
Published on
Apr 25, 2023
Cumulative downloads
Total Downloads
Last Day
42.9%
4,371
Compared to previous day
Last Week
-7.3%
93,418
Compared to previous week
Last Month
-7.2%
418,124
Compared to previous month
Last Year
43.2%
4,437,082
Compared to previous year
2
URI Template RFC 6570 expansion and extraction.
npm install uri-template-lite
1var UriTemplate = require("uri-template-lite") 2 3// Call `expand` directly 4var data = {"domain":"example.com", "user":"fred", "query":"mycelium"} 5UriTemplate.expand("http://{domain}/~{user}/foo{?query,number}", data) 6// Returns http://example.com/~fred/foo?query=mycelium 7 8// ..or use `Template` constructor 9var template = new UriTemplate("http://{domain}/~{user}/foo{?query,number}") 10template.expand({"domain":"example.com", "user":"fred", "query":"mycelium", "number": 3}) 11// Returns http://example.com/~fred/foo?query=mycelium&number=3 12 13// Extract variables 14template.match("http://example.com/~fred/foo?query=mycelium&number=3") 15// Returns {"domain":"example.com", "user":"fred", "query":"mycelium", "number": "3"} 16 17template.match("http://other.com/?query=mycelium") 18// Returns null
This implementation 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.
It should work IE6 and up but automated testing is currently broken.
browser-upgrade-lite
package
or other ES5 polyfill.escape
should be patched to remove non-standard 2nd param,
browser-upgrade-lite
does that.GitHub repo |
npm package |
URI Template RFC 6570 and
Tests |
Coveralls coverage
Buy Me A Tea
Copyright (c) 2014-2022 Lauri Rooden <lauri@rooden.ee>
The MIT License
5.9/10
Summary
uri-template-lite Regular Expression Denial of Service
Affected Versions
< 22.9.0
Patched Versions
22.9.0
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
SAST tool detected: CodeQL
Details
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More